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.- Install Docker Engine:
-
Install jq which parses JSON outputs from the Nebius AI Cloud CLI and extracts resource IDs for other commands:
-
Install the Nebius AI Cloud CLI (how to install) which manages all Nebius AI Cloud resources:
-
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 thenebius profile createflow, get the project ID and save it in the CLI configuration: -
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:-
Run the Nebius AI Cloud Docker credential helper. It lets you use registries in Container Registry without running the
docker login. -
Check that the credential helper is configured:
-
Open the file from the previous command output, for example, with the
catcommand: -
Check that the
credHelpersproperty contains the following lines:
-
Open the file from the previous command output, for example, with the
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.
-
Pull an image from the Docker Hub:
-
Assign the image a tag:
-
Push the image to the Container Registry:
-
Run the image: