Pushing a Docker image to a registry
These instructions describe how to push a local Docker image to a registry.
Note
To push an image, you need to authenticate in the registry.
CLI
-
View the list of available Docker images:
docker image list REPOSITORY TAG IMAGE ID CREATED SIZE cr.yandex/crpd50616s9a2t7gr8mi/ubuntu hello 50ff4b0e5783 23 hours ago 86.7MB ubuntu latest 1d9c17228a9e 2 weeks ago 86.7MB
-
(option) Assign a tag like
cr.yandex/<registry ID>/<Docker image name>:<tag>
to the Docker image:docker tag ubuntu \ cr.yandex/crpd50616s9a2t7gr8mi/ubuntu:example
Note
You can only push to Container Registry Docker images tagged with
cr.yandex/<registry ID>/<Docker image name>:<tag>
. -
Push the required Docker image to the registry:
docker push cr.yandex/crpd50616s9a2t7gr8mi/ubuntu:hello
-
Make sure the image has been added to the registry. To do this, get a list of Docker images in the registry.