Skip to content

Tag and push an image to a registry

Select an icon to see what it is.

Step 2 of 6

push starts with credentials

The CLI sends POST /images/registry.example.com/shop/web/push with tag=1.0. It puts your saved login for registry.example.com in the X-Registry-Auth header. dockerd builds the manifest from the image config and the layer digests in its store.

$ docker push registry.example.com/shop/web:1.0

POST /v1.45/images/registry.example.com/shop/web/push?tag=1.0

X-Registry-Auth: <base64 JSON with the login for the registry>