What Was I Thinking?

Follies & Foils of .NET Development
posts - 94 , comments - 351 , trackbacks - 0

Friday, October 7, 2016

Remove (and stop) all Docker Containers (and Images)

 

A simple one-liner to stop all the containers and then remove them

docker rm -f $(docker ps -a -q)

 

And similar for all images:

docker rmi $(docker images -q)

Posted On Friday, October 7, 2016 12:52 PM | Comments (0) |

Powered by: