March 2017
Beginner to intermediate
925 pages
18h 11m
English
To remove the image from the host, we can use the docker rmi command. However, this does not remove images from the registry.
Make sure one or more Docker images are locally available.
$ docker rmi [ OPTIONS ] IMAGE [IMAGE...]
In our case, here's an example using the preceding syntax:
$ docker rmi nkhare/fedora:httpd

If you want to remove all containers and images, then do following; however, be sure about what you are doing, as this is very destructive:
$ docker stop 'docker ps -q'
Read now
Unlock full access