Skip to content
BENIBIX Learn

Docker Hub

Infrastructure📦 ContainersImages and Registries

Also known as hub.docker.com, docker.io

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

Think of it like

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

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.

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.

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 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.
Docker Hub is the registry in the middle when no other one is named.

Common mistake

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

Key takeaways

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