Skip to content

Latest commit

 

History

History
67 lines (43 loc) · 1.54 KB

09_delete_image_by_tag.md

File metadata and controls

67 lines (43 loc) · 1.54 KB

Delete Image by Tag

Docker Documentation References:

docker rmi

docker images

Intent

The purpose of this kata is to familarize yourself with the process of deleting an image from your local docker registry using a tag to select a specific image.

Overview

In this exercies we will list the images on in the local registry and then delete one using a tag to identify the image.

Kata Steps

List Images

Command

docker images

Output

thought:DockerKata rich$ docker images
REPOSITORY                                   TAG                 IMAGE ID            CREATED             SIZE
nginx                                        alpine              f00ab1b3ac6d        2 weeks ago         15.5 MB
nginx                                        mine                f00ab1b3ac6d        2 weeks ago         15.5 MB

Remove image

Command

docker rmi nginx:mine

Output

thought:DockerKata rich$ docker rmi nginx:mine
Untagged: nginx:mine

List Images

Command

docker images

Output

thought:DockerKata rich$ docker images
REPOSITORY                                   TAG                 IMAGE ID            CREATED             SIZE
nginx                                        alpine              f00ab1b3ac6d        2 weeks ago         15.5 MB

Previous | Index | Next