digitalocean_container_registry
Generated on 8 Jan 2026
from Terraform version
v2.72.0
Provides a DigitalOcean Container Registry resource. A Container Registry is a secure, private location to store your containers for rapid deployment.
Example Usage
# Create a new container registry
resource "digitalocean_container_registry" "foobar" {
name = "foobar"
subscription_tier_slug = "starter"
}Argument Reference
The following arguments are supported:
name- (Required) The name of the container_registrysubscription_tier_slug- (Required) The slug identifier for the subscription tier to use (starter,basic, orprofessional)region- (Optional) The slug identifier of for region where registry data will be stored. When not provided, a region will be selected automatically.
Attributes Reference
The following attributes are exported:
id- The id of the container registryname- The name of the container registrysubscription_tier_slug- The slug identifier for the subscription tierregion- The slug identifier for the regionendpoint- The URL endpoint of the container registry. Ex:registry.digitalocean.com/my_registryserver_url- The domain of the container registry. Ex:registry.digitalocean.comstorage_usage_bytes- The amount of storage used in the registry in bytes.created_at- The date and time when the registry was created
Import
Container Registries can be imported using the name, e.g.
terraform import digitalocean_container_registry.myregistry registryname