List of handy docker commands

View container logs

docker logs CONTAINER_ID --follow

Restart container

docker restart CONTAINER_ID

Stop all containers

docker kill $(docker ps -q)

Remove all containers

docker rm $(docker ps -a -q)

Remove all images

docker rmi $(docker images -q)

Create a custom bridge network

docker network create -d bridge NETWORK_NAME

Ref

https://typeofnan.dev/how-to-stop-all-docker-containers/