pydo.registries.create()
Generated on 18 Nov 2025
from pydo version
v0.21.0
Description
To create your container registry, send a POST request to /v2/registries.
The name becomes part of the URL for images stored in the registry. For
example, if your registry is called example, an image in it will have the
URL registry.digitalocean.com/example/image:tag.
Request Sample
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
req = {
"name": "example",
"region": "fra1"
}
resp = client.registries.create(body=req)More Information
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.