docker pull downloads a tagged container image from a registry such as Docker Hub to the local machine. Use the format docker pull <containerName>:<tag> to choose an exact image version. section 5.3.1 section 5.4
A practical workflow is:
- Open the official image repository and filter its tags for the required version. section 5.3.1 section 5.4
- Run the pull command with the image name and tag, then reuse that exact tag in a Dockerfile FROM line. section 5.3.1
- Expect Docker to download the image automatically when it is absent locally or when an image is run or built. section 5.3.1
Pull specific language runtimes
docker pull python:3.11.4 downloads the selected Python image. docker pull node:18.17.0 downloads the selected Node.js image; each tag identifies the version needed for a containerized application. section 5.3.1 section 5.4
Figure 5.6 Docker Hub screenshot of the pull command
View the Docker Hub screenshot showing the exact pull command for a selected Python image tag. section 5.3.1
