# Pulling an Image — Docker

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

> 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.

```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.
