A collection of useful tips and tricks for Docker.
NOTE: This will remove ALL your containers.
docker container prune
OR, if you're using an older docker client:
docker rm $(docker ps -a -q)
docker image prune
OR, if you're using an older docker client:
docker rmi $(docker images | grep '^<none>' | awk '{print $3}')
docker system df
docker inspect [CONTAINER ID] | grep -wm1 IPAddress | cut -d '"' -f 4
docker kill $(docker ps -q)
Got more tips and tricks? Submit a PR!