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.
Check the Public box if you want set the visibility to public or uncheck the box if you want to set visibility to private.
Click Update to apply the changes.
Send a GET
request to the List 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 POST
request to the Update Registry endpoint to update the 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 registries available 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