Docker Documentation References:
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.
In this exercies we will list the images on in the local registry and then delete one using a tag to identify the image.
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
Command
docker rmi nginx:mine
Output
thought:DockerKata rich$ docker rmi nginx:mine
Untagged: nginx:mine
Command
docker images
Output
thought:DockerKata rich$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
nginx alpine f00ab1b3ac6d 2 weeks ago 15.5 MB