Files
freeCodeCamp/guide/english/docker/docker-image/index.md
Andrew Roesener 9f5a44bd7d Added docker-image guide directory/documentation (#30856)
* Added docker-image folder and created index.md with documentation for basic docker image commands

* corrected CLI link name from 'load' to 'image'
2019-07-04 13:00:52 -05:00

901 B

title
title
Docker image

List docker images

docker image command is for viewing and working with the docker images currently built/saved on the machine.

To list final builds type the following command:

docker image ls

And for a list of all images, including intermediate containers type:

docker image ls -a

Remove unused images

If you wish to remove unused intermediate images you can clean up using the prune command:

docker image prune

In order to remove all unused images you can use the prune command with the -a flag applied. To remove a specific image you can type the following:

docker image rm <image name>

This will remove the named image. All removed images will have to pulled/built again prior to container redeployment.

More Information: