Prepare your environment
In this guide, you will use the terminal in your environment, e.g. 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.- Ubuntu
- macOS
- Install Docker Engine.
-
Install jq (how to install) 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:
nebius profile create, will open the sign-in screen of the Nebius AI Cloud web console in your browser. Sign in to the web console to complete the initialization. After that, save your project ID in the CLI configuration:
-
Copy your project ID from the web console:
- Go to the web console and then expand the top list of projects.
-
Next to the project’s name, click
→ Copy project ID.
-
Add the project ID to the CLI configuration:
-
Create an environment variable for the region in which your project is located:
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 Nebius AI Cloud registries 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
-
Pull an image from the Docker Hub:
Do not run the command as root.
-
Assign the image a tag:
-
Push the image to the Container Registry:
Do not run the command as root.
-
Run the image: