Episode 10. Deleting Images and Containers

A. Deleting Containers:

docker ps -a
docker rm <container-id-1> <container-id-2> <container-id-3>
docker stop <running-container-id>      // Stop container
docker rm <running-container-id> // Remove container
docker container prune

B. Deleting Images:

docker images 
docker rmi <image-ID>.  // Delete singledocker rmi <image-ID-1> <image-ID-2> <image-ID-3> // Delete multiple
docker images            // check imagesdocker stop <image-id>   // stop imagedocker rmi <image-id>    // delete image
docker image prune

Video:

Closing Thoughts:

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store