digitalocean / digitalocean/doctl
DigitalOcean Container Registry GET/DELETE API Calls Failing
- Dominant language
- Go
- Stars
- 3.4k
- Forks
- 496
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 31
Description
I’m running into a problem with **DigitalOcean Container Registries** using `doctl`.
* Creating a registry (`doctl registry create`) works fine.
* However, `doctl registry get` and `doctl registry delete` fail with a **412 error**:
```
Error retrieving container registry: GET https://api.digitalocean.com/v2/registry: 412
This API is not supported if you have created multiple registries. Please use '/v2/registries' instead.
```
I also tested with Terraform — the same GET request fails there too. This confirms it’s an issue with the **DigitalOcean API**, not the tools or our configuration.
**Environment:**
doctl version 1.99.0-release
OS: Win11
**Additional Details:**
* Tested with multiple Terraform registry configurations — same result.
* Related GitHub issue: [https://github.com/digitalocean/doctl/issues/1723](https://github.com/digitalocean/doctl/issues/1723)
Contributor guide
Assessment
This issue has not been assessed yet.