Docker & ContainersOptional

Registries & Distribution

Push, pull, and tag images across registries.

25 min read intermediate 3 objectives

Status

Not started

What you will learn

  • Tag images correctly
  • Push to a registry
  • Understand image digests

New to this? Start here

The basics, in plain English

Once you build an image, you need a place to store and share it. A registry is that storage, like an app store for container images. You push images up and others pull them down.

Registry
A server that stores container images so they can be shared and downloaded.
Docker Hub
The most common public registry, full of ready-made images.
Push
Uploading your image to a registry.
Pull
Downloading an image from a registry to run it.
Digest
A unique fingerprint that pins the exact image content, so you get precisely what you expect.
01

Sharing images

A registry stores images. Tag with registry/name:version, push, and consumers pull. Digests pin exact content.

Try it yourself

bash
$docker tag app:latest ghcr.io/me/app:v1
Give the image a registry name and version tag.
$docker push ghcr.io/me/app:v1
Upload the image to the container registry.
↳ lines explain what each command does — only the commands get copied

Finished this topic?

Mark it done to earn 100 XP and keep your streak alive.