Last updated 4 years ago
Was this helpful?
Stop all containers
docker stop $(docker ps -a -q)
Remove all containers
docker rm $(docker ps -a -q)
Remove all images
docker rmi $(docker images -q)
Remove all unused containers, networks, images (both dangling and unreferenced), and volumes.
docker system prune -a -f --volumes
host.docker.internal not working on linux: https://dev.to/natterstefan/docker-tip-how-to-get-host-s-ip-address-inside-a-docker-container-5anh#:~:text=On%20Docker%20for%20Linux%2C%20the,you%20are%20using%20default%20networking.
host.docker.internal