Docker sq
Docker Fundamentals - Image Basics

Managing Images


Managing Images through the Docker Client

To list all images in your system, run $ docker image ls.

Notice that every image has a default tag latest, which referes to a specific version of that image. Every image version is also assigned an IMAGE ID. Other information includes the size of the image and the date it was created.

To delete any image, simply run $ docker image rm [IMAGE_NAME]:[IMAGE_TAG]. If no tag is provided, Docker will assume latest. You cannot remove any image currently referenced by a container.

To download (or pull) an image from Docker Hub, run $ docker image pull [IMAGE_NAME]:[IMAGE_TAG]