Download and Remove Docker Images

Mark Shust
InstructorMark Shust
Share this video with your friends

Social Share Links

Send Tweet
Published 8 years ago
Updated 2 years ago

Learn the basics of downloading and pulling Docker images from Docker Hub. Learn the difference between default tags and version specific tags. Also learn how to display all images, and different ways to remove images.

[00:00] Let's download our first image by typing docker pull mongo. This will download the image from the mongo repository. By default, docker pulls images from docker hub.

[00:11] You can visit hub.docker.com to search through a list of available images. If no tag is provided, docker pulls images with the latest tag. Download a specific version of a docker image by appending a colon with a tag, or version to the end of the image name.

[00:29] Let's download another image. Note that official docker images only have one name, while community submitted images are name spaced with a user name, and a slash. Let's see which images are downloaded into our machine by typing docker images.

[00:47] We can see the images along with the tag, image ID, when they were created, and the size. To remove an image, type docker rmi, and then, the image name. You can also remove a specific tag by appending it to the image name.

[01:04] Another way to remove an image is by the image ID. Note that you don't need to use the full ID, but just the first few letters as long as it has uniqueness between the other downloaded image IDs.

egghead
egghead
~ 18 minutes ago

Member comments are a way for members to communicate, interact, and ask questions about a lesson.

The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io

Be on-Topic

Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.

Avoid meta-discussion

  • This was great!
  • This was horrible!
  • I didn't like this because it didn't match my skill level.
  • +1 It will likely be deleted as spam.

Code Problems?

Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context

Details and Context

Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!

Markdown supported.
Become a member to join the discussionEnroll Today