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
Result:
REPOSITORY TAG IMAGE ID CREATED SIZE cr.il.nebius.cloud/crpd50616s9a2t7gr8mi/ubuntu hello 50ff4b0e5783 23 hours ago 86.7MB ubuntu latest 1d9c17228a9e 2 weeks ago 86.7MB
-
(optional) Assign a URL in the format
cr.il.nebius.cloud/<registry ID>/<Docker image name>:<tag>
to the Docker image:docker tag ubuntu \ cr.il.nebius.cloud/crpd50616s9a2t7gr8mi/ubuntu:hello
Note
You can only push Docker images with a URL in the format
cr.il.nebius.cloud/<registry ID>/<Docker image name>:<tag>
to Container Registry. -
Push the required Docker image to the registry:
docker push cr.il.nebius.cloud/crpd50616s9a2t7gr8mi/ubuntu:hello
-
Make sure the image uploaded to the registry by getting a list of docker images in the registry.