# Pulling an Image — Docker Fundamentals: Images, Containers and Compose

Source: https://www.skillbyai.com/en/docker/docker-pulling-images

> Pull images from Docker Hub with docker pull and pin version tags instead of relying on latest.

## docker pull

`docker pull` downloads an image from a registry (Docker Hub by default) to your local machine, without running it.

```bash
docker pull nginx:latest
docker images   # list local images
```

## Always pin a tag

`nginx` without a tag means `nginx:latest`, which changes over time. Pin a version like `nginx:1.27` for reproducible builds.
