kill all running containers
docker kill $(docker ps -q)delete all stopped containers
docker rm $(docker ps -a -q)delete all images
docker rmi $(docker images -q)update and stop a container that is in a crash-loop
docker update --restart=no && docker stopbash shell into container (if bash is not available use /bin/sh)
docker exec -i -t /bin/bashbash shell with root if container is running in a different user context
docker exec -i -t -u root /bin/bashdelete all containers including its volumes use
docker rm -vf $(docker ps -a -q)Remove all unused containers, volumes, networks and images
docker system prune -a --volumesview container log
docker logs -f 49725ba5da0f
-f, --follow Follow log output