Skip to main content
Container Registry helps you manage Docker images for your resources. This guide covers how to set up your environment to work with the service, create your first registry, push a Docker image to it and run the image.

Prepare your environment

In this guide, you will use the terminal in your environment, for example, on your local machine, to run commands that create and manage Nebius AI Cloud resources. The commands use the Nebius AI Cloud CLI and tools that you need to install first.
  1. Install Docker Engine:
  2. Install jq which parses JSON outputs from the Nebius AI Cloud CLI and extracts resource IDs for other commands:
  3. Install the Nebius AI Cloud CLI (how to install) which manages all Nebius AI Cloud resources:
  4. Configure the Nebius AI Cloud CLI:
    The last command, nebius profile create, will guide you through several prompts. After you complete the prompts, your browser will open the Nebius AI Cloud web console sign-in screen. Sign in to the web console to complete the initialization. If you have access to multiple tenants, the CLI will prompt you to choose a tenant ID. After that, save your project ID in the CLI configuration: If the project ID has not been configured during the nebius profile create flow, get the project ID and save it in the CLI configuration:
  5. Create an environment variable for the region in which your project is located:
    For available region IDs, see Nebius AI Cloud regions.

Create a registry

Create a test registry and save a part of its ID to an environment variable:

Configure Docker

Configure Docker to work with the created registry:
  1. Run the Nebius AI Cloud Docker credential helper. It lets you use registries in Container Registry without running the docker login.
  2. Check that the credential helper is configured:
    1. Open the file from the previous command output, for example, with the cat command:
    2. Check that the credHelpers property contains the following lines:

Push and run a Docker image

Do not run Docker commands as root. The credential helper is configured for your user account, so root may not be able to access the credentials.
  1. Pull an image from the Docker Hub:
  2. Assign the image a tag:
  3. Push the image to the Container Registry:
  4. Run the image: