Managing multiple repositories in the Vultr Container Registry with similar names is easier when each has a clear, distinct description. Updating a repository's description adds context to the stored container images, keeps the details up to date, and improves discoverability within container workflows.
Follow this guide to update a repository's description in your container registry on your Vultr account using the Vultr API or CLI.
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 GET
request to the List Repositories endpoint to list all the available repositories and note the target repository image.
$ curl "https://api.vultr.com/v2/registry/{registry-id}/repositories" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a PUT
request to the Update Repository endpoint to update the target repository's description.
$ curl "https://api.vultr.com/v2/registry/{registry-id}/repository/{repository-image}" \
-X PUT \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"description" : "{description}"
}'
List all the available registries in your Vultr account and note the target registry's ID.
$ vultr-cli container-registry list
List all the available repositories in your registry and note the target repository image.
$ vultr-cli container-registry repository list <registry-id>
Update the target repository's description.
$ vultr-cli container-registry repository update <registry-id> --image-name "<repository-image>" --description "<description>"
No comments yet.