Pulling Images

Learn how to pull Docker images from repositories.

Pull an image from the Docker Hub

A clean Docker installation has an empty local repository.

The local repository is jargon for an area on our local machine where Docker stores images for more convenient access. We sometimes call it the image cache, and on Linux, it’s usually located in /var/lib/docker/<storage-driver>. However, it will be inside the Docker VM if we’re using the Docker Desktop.

Run the following command to inspect the contents of the local repository.

Get hands-on with 1300+ tech skills courses.