Creating a registry
Management console
CLI
-
In the list of services in the management console
, select Container Registry. -
Specify a name for the registry.
- The length can be from 3 to 63 characters.
- It may contain lowercase Latin letters, numbers, and hyphens.
- The first character must be a letter. The last character can't be a hyphen.
-
Click Create registry.
If you don't have the Nebius AI command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
-
Make sure that a registry has not been created in the folder yet:
ncp container registry list
Result:
+----+------+-----------+ | ID | NAME | FOLDER ID | +----+------+-----------+ +----+------+-----------+
If the folder already contains a registry, see Updating a registry for information about how you can change it.
-
Create a registry:
ncp container registry create --name my-reg
Result:
done id: crpd50616s9a2t7gr8mi folder_id: b1g88tflru0ek1omtsu0 name: my-reg status: ACTIVE created_at: "2019-01-09T14:34:06.601Z"
- The length can be from 3 to 63 characters.
- It may contain lowercase Latin letters, numbers, and hyphens.
- The first character must be a letter. The last character can't be a hyphen.
- The
--name
flag is optional. You can create a registry without a name and access it by its ID. - The
name
field is user-defined: it is used for listing in the Nebius AI CLI and is not used in the Docker CLI.
-
Make sure the registry was created:
ncp container registry list
Command result:
+----------------------+--------+----------------------+ | ID | NAME | FOLDER ID | +----------------------+--------+----------------------+ | crpd50616s9a2t7gr8mi | my-reg | b1g88tflru0ek1omtsu0 | +----------------------+--------+----------------------+