digitalocean / doctl

The official command line interface for the DigitalOcean API.
https://docs.digitalocean.com/reference/doctl/
Apache License 2.0
3.26k stars 397 forks source link

DOCR: Add support for multiple-registry open beta endpoints #1611

Open rak16 opened 1 week ago

rak16 commented 1 week ago
  1. Adds a new Registries command to support multiple-registry open beta endpoints, including:
    • create: Create a private container registry
    • delete: Delete a registry
    • docker-config: Generate a Docker auth configuration for a registry
    • get: Get information about a registry
    • list: List all registries in your account
  2. Fixed incorrect documentation for Repository sub-commands.
  3. Added --registry flag to Repository sub-commands (REST API's already support them).

Testing:

We have multiple-registry open beta endpoints deployed on stage2; to test it out:

  1. Run make build
  2. Run chmod +x builds/doctl to make sure the build is executable
  3. Test against stage2 by setting -u flag:
    builds/doctl registries  \
    -u "https://api.s2r1.internal.digitalocean.com/" \
    -t $DO_TOKEN