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
Oussama Lakhdar -
Bal Dev -
Brayan Monteiro -
AMatisse -
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 pruneone, good to know :)Do you know if adding --all removes running ones too?