1 min read
And I can show you!
docker rm -v $(docker ps -a -q) docker rmi $(docker images -q)
docker volume rm $(docker volume ls -qf dangling=true)
These commands are dirty, but they are 'safe' as they will do nothing if the ressource is used.
(Don't do it in production though, unless you know what you are doing!)
Inspired fromand and also and