Docker Push and Registries

Tag, push, and pull images across Docker Hub and private registries.

  • docker push
  • docker pull
  • docker tag
  • private registry
  • multi-arch

Docker Push and Registries

Tag, push, and pull images across Docker Hub and private registries.

Commands

CommandWhat it does
docker tag app:v1 registry.example.com/team/app:v1Retag for a registry
docker push registry.example.com/team/app:v1Upload the image
docker pull registry.example.com/team/app:v1Download on the server
docker logoutRemove stored registry credentials
docker manifest inspect nginx:1.27Check multi-arch support

Example

docker tag app:v1 registry.example.com/team/app:v1.3
docker push registry.example.com/team/app:v1.3
docker pull registry.example.com/team/app:v1.3

FAQ

Do I need :latest too?

Push both the version tag and latest on release so quick experiments still work while prod pins versions.

Why is push slow?

Each layer uploads once; squash RUN steps and share base images across services to minimize new layers.

常见问题

Do I need :latest too?
Push both the version tag and latest on release so quick experiments still work while prod pins versions.
Why is push slow?
Each layer uploads once; squash RUN steps and share base images across services to minimize new layers.

Docker