docker push

Push an image to a registry. Requires docker login first.

Syntax

docker push [OPTIONS] NAME[:TAG]

Examples

Example 1
docker push myuser/myapp:latest

Push to Docker Hub under your username.

Example 2
docker push ghcr.io/owner/repo:v1.0

Push to GitHub Container Registry.

Tips & best practices

Related commands

View full Docker cheatsheet →