How to Manage the Visibility of Vultr Container Registry

Updated on November 27, 2024

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.

  • Vultr Customer Portal
  • Vultr API
  • Vultr CLI
  1. Navigate to Products and click Container Registry.

    Container Registry in the products menu

  2. Click your target registry to open its management page.

    Selection of a target container registry

  3. Click Settings to open its settings page.

    Button to open the container registry settings page

  4. Check the Public box if you want set the visibility to public or uncheck the box if you want to set visibility to private.

    Checkbox to set a container registry to public visibility

  5. Click Update to apply the changes.

    Button to update the container registry visibility

  1. Send a GET request to the List Registries endpoint and note the target registry's ID.

    console
    $ curl "https://api.vultr.com/v2/registries" \
        -X GET \
        -H "Authorization: Bearer ${VULTR_API_KEY}"
    
  2. Send a POST request to the Update Registry endpoint to update the registry visbility.

    console
    $ 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
            }'
    
  1. List all registries available in your Vultr account and note the target registry's ID.

    console
    $ vultr-cli container-registry list
    
  2. Update the visibility of your target registry.

    console
    $ vultr-cli container-registry update <registry-id> --public