Image Naming and Tagging
Learn to name and tag a Docker image.
We'll cover the following
Overview
Addressing images from official repositories is as simple as providing the repository name and the tag separated by a colon (:
). The format for docker image pull
when working with an image from an official repository is:
$ docker image pull <repository>:<tag>
In the Linux examples from earlier, we pulled an Alpine and a Redis image with the following two commands:
$ docker image pull alpine:latest
and docker image pull redis:latest
These two commands pull the images tagged as “latest” from the top-level “alpine” and “redis” repositories.
The following examples show how to pull various different images from official repositories:
Get hands-on with 1200+ tech skills courses.