🐳Docker Learning Hub
Lesson 15 • Docker Hub and registries
Lesson 15

Docker Hub and registries

This page explains how Docker images are named, tagged, pushed, pulled, and shared with registries like Docker Hub.

Registry

A registry stores Docker images so they can be downloaded again later.

Docker Hub

Docker Hub is the most common public registry beginners use for official images and shared project images.

Why it matters

Without pushing to a registry, your image usually stays local to one machine only.

Basic push flow

docker build -t my-app . docker tag my-app yourname/my-app:1.0 docker push yourname/my-app:1.0

Basic pull flow

docker pull yourname/my-app:1.0

Another machine can now download the same image version and run it.

Important commands

  • docker login
  • docker tag
  • docker push
  • docker pull

Common mistakes

  • Forgetting to tag the image correctly before push
  • Using unclear tags
  • Assuming a local image already exists on another machine
  • Depending too much on `latest` instead of clear versions

Next page: Lesson 16 covers Docker security basics before the final Phase 2 lesson on development vs production setup.