Deleting Images

Learn how to delete Docker images.

We'll cover the following

We can delete images using the docker rmi command. rmi is short for remove image. Deleting images removes them from our local repository, and they will no longer appear in our docker images commands. The operation also deletes all directories on the local filesystem containing layer data. However, Docker won’t delete layers shared by multiple images until we delete all images that reference them.

Get hands-on with 1400+ tech skills courses.