Updating a registry
Find out how to change:
To access a registry, use its ID or name. For information about how to get the registry ID or name, see Getting information about existing registries.
Updating the name of a registry
To update the name of a registry:
- Open Container Registry in the folder to update the registry in.
- Click
in the line of the registry to change. - In the menu that opens, click Edit.
- In the window that opens, enter the registry name.
- (Optional) Update labels.
- Click Edit.
If you do not have the Yandex Cloud command line interface yet, install and initialize it.
Change the registry name:
yc container registry update my-reg --new-name new-reg
Result:
id: crp3qleutgks********
folder_id: b1g88tflru0e********
name: new-reg
status: ACTIVE
created_at: "2019-01-15T14:39:48.154Z"
Updating the label of a registry
Change the registry label (not to be confused with Docker image tags):
yc container registry update new-reg --labels new_label=test_label
Result:
id: crp3qleutgks********
folder_id: b1g88tflru0e********
name: new-reg
status: ACTIVE
created_at: "2019-01-15T14:39:48.154Z"
labels:
new_label: test_label
Configuring access for IP addresses
To add or delete an IP address and configure access to a registry:
- Open Container Registry in the folder to update the registry in.
- Click the name of the registry you need, select
Access for IP address, and click Set. - Click Add and specify the IP address and permission to perform an action with the registry:
PULL
to pull Docker images from the registry orPUSH
to push them to the registry. - Click
in the line of the IP address from which you need to delete the permissions. - Click Save.
If you do not have the Yandex Cloud command line interface yet, install and initialize it.
Add the IP address to grant permissions to:
yc container registry add-ip-permissions \
--name my-reg \
--pull <IP_address_with_PULL_access> \
--push <IP_address_with_PUSH_access>
Remove the IP permission:
yc container registry remove-ip-permissions \
--name my-reg \
--pull <IP_address_with_PULL_access> \
--push <IP_address_with_PUSH_access>
To add, update, or delete an IP address and configure its registry permissions, use the updateIpPermission method for the Registry resource.