Skip to main content

Docker hints

Kolmogorov

Useful docker commands

Run a command inside a container. For example, you could run bash shell in container:

docker exec -it cc7cc910d9df bash

Stop all containers:

docker stop $(docker ps -a -q)

Remove all unused volumes:

docker volume prune

Remove all stopped containers

docker rm $(docker ps -a -q)

Network troubleshooting

docker run -d --name network-multitool --add-host host.test.com:192.168.100.100 -v /opt/certs:/app/certs praqma/network-multitool
nc -vz 192.168.1.1 443