# Docker Hub

> Docker's public store of images. The docker tool looks there first.

**Field:** Infrastructure  
**Category:** Containers  
**Also known as:** hub.docker.com, docker.io

## Think of it like

It is like an app store. But each app in it is a container image.

## Definition

Docker Hub is the public container registry run by Docker. The docker command looks there first when you ask for an image by a short name. It holds official images for common tools, like web servers and databases. Anyone can share images there, and teams can keep private ones too. Free use has a limit on how many images you can pull.

## Example

Jack types docker pull nginx. Docker fetches the official image from Docker Hub. With no login, it allows 100 pulls in six hours from one address. With a free login, it allows 200.

## Example code

```console
$ docker pull nginx
Using default tag: latest
latest: Pulling from library/nginx
Status: Downloaded newer image for nginx:latest
docker.io/library/nginx:latest
```

A short name like nginx means the official image. Docker fetches it from Docker Hub.

## Why it matters

Most images are built on a base image from Docker Hub. Knowing its pull limit saves a build from failing on a busy day.

## Common mistake

Trusting every image you find there. Anyone can upload one, so start from the official ones.

## Three principles

- **The default.** Short image names are looked up here.
- **Official images.** Checked base images for common tools.
- **Pull limits.** Free use caps pulls every six hours.

## Related terms

- [Container Registry](https://learn.benibix.com/term/infrastructure/container-registry)
- [Docker](https://learn.benibix.com/term/infrastructure/docker)
- [Container Image](https://learn.benibix.com/term/infrastructure/container-image)
- [Dockerfile](https://learn.benibix.com/term/infrastructure/dockerfile)

![A row of steps from left to right. A Dockerfile is built into an image. The image is pushed up to a registry. A server pulls the image down from the registry and runs it as two containers.](https://learn.benibix.com/diagrams/inf-image-flow.svg)

---

Source: https://learn.benibix.com/term/infrastructure/docker-hub
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
