Answers for "docker rm all containers not running"

29

docker delete all containers

docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
Posted by: Guest on May-10-2020
0

docker remove not running containers

docker container rm $(docker container ls –aq)
Posted by: Guest on October-30-2020

Code answers related to "docker rm all containers not running"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language