Answers for "docker remove all containers if there is one"

20

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 all containers

docker rm -f $(docker ps -aq)
Posted by: Guest on July-16-2021

Code answers related to "docker remove all containers if there is one"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language