Setting a Vultr Container Registry to Public allows broader access, making it easier to share and deploy container images across multiple environments and teams. By configuring your registry to be public, you facilitate wider distribution and collaboration on your containerized applications.
Follow this guide to set your container registry visibility to public on your Vultr account using the Vultr Customer Portal, API, or CLI.
Navigate to Products and click Container Registry.
Click your target registry to open its management page.
Click Settings to open its settings page.
In the Change Visibility section, check the Public box to set the visibility to public, or uncheck the box to set it to private.
Click Update to apply the change.
Send a GET
request to the List Container Registries endpoint and note the target registry's ID.
$ curl "https://api.vultr.com/v2/registries" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a PUT
request to the Update Container Registry endpoint to update the target registry visbility.
$ curl "https://api.vultr.com/v2/registry/{registry-id}" \
-X PUT \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"public" : true
}'
List all the available registries in your Vultr account and note the target registry's ID.
$ vultr-cli container-registry list
Update the visibility of your target registry.
$ vultr-cli container-registry update <registry-id> --public true
No comments yet.