Useful Docker Commands

Collection of useful docker commands

Get terminal of running container

docker exec -i -t 69cdf5db39b7 /bin/sh

Delete all containers

docker rm $(docker ps -a -q)

Delete all images

docker rmi $(docker images -q)

Delete all docker networks

docker network rm $(docker network ls | awk '/ / { print $1 }')

Reload haproxy

docker kill -s HUP my-running-haproxy

Tags:

docker