Creating a registry
Written by
Updated at December 16, 2024
Management console
CLI
API
- In the management console
, select the folder to create a registry in. - In the list of services, select Cloud Registry.
- Go to the Registries tab.
- In the top-right corner, click Create registry.
- Select the registry format.
- If you selected Maven as registry format, specify a version policy:
Release
: For stable versions.Snapshot
: For development with frequent updates.Mixed
: A combination ofRelease
andSnapshot
for flexibility.
- Enter a name and description for the registry.
- Click Create.
To create a registry, run this command:
yc cloud-registry registry create \
--name <registry_name> \
--description <registry_description> \
--registry-kind <registry_format> \
--registry-type <registry_location>
Where:
--name
: Registry name.--description
: Registry description.--registry-kind
: Registry format. The available values aremaven
,npm
, anddocker
.--registry-type
: Registry location. Possible value:local
.
Result:
done (3s)
id: cn1fsnc2dak********
folder_id: b1gc1t4cb638********
name: my-first-registry
kind: DOCKER
type: LOCAL
status: ACTIVE
description: docker
created_at: "2024-11-30T16:11:12.901356Z"
modified_at: "2024-11-30T16:11:16.243323Z"
To create a registry, use the create REST API method for the Registry resource or the RegistryService/Create gRPC API call.