DigitalOcean-public.v2-new_Container Registry
Create Container Registry
To create your container registry, send a POST request to /v2/registry.
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.
post/v2/registry
Request body
Example request
{
"name": "example",
"subscription_tier_slug": "basic",
"region": "fra1"
}Response
The response will be a JSON object with the key registry containing information about your registry.
Example response
{
"registry": {
"name": "example",
"created_at": "2020-03-21T16:02:37Z",
"region": "fra1",
"storage_usage_bytes": 29393920,
"storage_usage_bytes_updated_at": "2020-11-04T21:39:49.530562231Z",
"subscription": {
"tier": {
"name": "Basic",
"slug": "basic",
"included_repositories": 5,
"included_storage_bytes": 5368709120,
"allow_storage_overage": true,
"included_bandwidth_bytes": 5368709120,
"monthly_price_in_cents": 500,
"storage_overage_price_in_cents": 2
},
"created_at": "2020-01-23T21:19:12Z",
"updated_at": "2020-11-05T15:53:24Z"
}
}
}