digitalocean / digitalocean/doctl

doctl registry with multiple registry

Open
#1,723 3 comments 3 reactions 0 assignees View on GitHub
api-parity bug
Dominant language
Go
Stars
3.4k
Forks
496
Avg merge
1d 2h
Merged PRs (30d)
31

Description

I've encountered an issue when attempting to use `doctl `with multiple DigitalOcean Container Registries. Previously, I relied on doctl to retrieve registry information and untag unused images. However, with the presence of multiple registries in my account, using commands that implicitly target a single registry (e.g., doctl registry get) now results in the following error:

> `Error: failed to get registry: GET https://api.digitalocean.com/v2/registry: 412 (request ) This API is not supported if you have created multiple registries. Please use ‘/v2/registries/{registry_name}’ instead. Refer to https://docs.digitalocean.com/reference/api/digitalocean/#tag/Container-Registry for more info.
> `

This prevents me from performing essential registry management tasks via doctl for any of my registries, as I cannot specify which registry I intend to interact with for these general commands. I am effectively blocked from using doctl for my registry workflows.

Environment:

- doctl version: 1.133.0-release
- OS: macOS 15.5
- Installation method: Homebrew

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.