Some commands I end up searching all the time:
docker stop $(docker ps -a -q) # stop all containers
docker rm $(docker ps -a -q) # remove all containers
Some commands I end up searching all the time:
docker stop $(docker ps -a -q) # stop all containers
docker rm $(docker ps -a -q) # remove all containers
For further actions, you may consider blocking this person and/or reporting abuse
Dmitry Romanoff -
Pranav Bakare -
Anton Yanchenko -
Pranav Bakare -
Top comments (2)
You also can use docker container prune to remove all stopped containers
Ohh cool, didn't know about that command, just the
system prune
one, good to know :)Do you know if adding --all removes running ones too?