Lesson 4 / 26
Pulling an Image
Fetch a published image from a registry before running it.
docker pull
docker pull downloads an image from a registry (Docker Hub by default) to your local machine, without running it.
docker pull nginx:latest
docker images # list local imagesAlways pin a tag
nginx without a tag means nginx:latest, which changes over time. Pin a version like nginx:1.27 for reproducible builds.