As a memorandum, I often want to go straight when the environment is being built or verified.
$ docker stop $(docker ps -q)
$ docker rm $(docker ps -q -a)
$ docker rmi $(docker images -q)
$ docker volume rm $(docker volume ls -qf dangling=true)
That's it.
Recommended Posts