💾Thananjhayan
← Back to notes

Docker Hub — Pushing Images

July 8, 2025

Docker Hub is the cloud registry that stores your images.

Create a repository

hub.docker.com → RepositoriesCreate Repository → give it a name → PublicCreate.

Push with Compose

docker login              # Docker Hub username + password/token
docker compose build      # build all images
docker compose push       # push them to Docker Hub

Then check the images appear on your Docker Hub repository page.

Push manually (without Compose)

docker build -t <user>/<name>-backend:latest ./backend
docker build -t <user>/<name>-frontend:latest ./frontend
docker push <user>/<name>-backend:latest
docker push <user>/<name>-frontend:latest

Gotchas

  • Images must be tagged username/repo:tag — that's how Docker Hub knows where to push.
  • Run docker login before pushing, or you get "access denied".

See also [[docker-compose]] and [[docker-multi-container-app]].

💬 Comments