Lesson 24 / 26

Pushing & Pulling

Share your own images by pushing them to a registry.

Namespace, tag, push

Tag your image as <username>/<repo>:<tag> before pushing — Docker Hub uses that prefix to know it's yours.

docker tag my-app:1.0 myusername/my-app:1.0
docker push myusername/my-app:1.0

# anywhere else:
docker pull myusername/my-app:1.0

Private registries

Companies often run a private registry (ECR, GCR, ACR, self-hosted) instead of Docker Hub — the workflow is the same, just with a different registry hostname in the tag.