Skip to content

doctl registry with multiple registry #1723

@dawit-cht

Description

@dawit-cht

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 <id>) 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    api-parityFeature supported in the DigitalOcean API not yet implemented in doctlbug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions