ConfigurationRegistriesDOCR
DOCR (DigitalOcean Container Registry)
The docr registry lets you configure DigitalOcean Container Registry integration.
The docr registry lets you configure DigitalOcean Container Registry integration.
Variables
| Env var | Required | Description | Supported values | Default value when missing |
|---|---|---|---|---|
DD_REGISTRY_DOCR_{REGISTRY_NAME}_TOKEN | ⚪ | DigitalOcean API token (recommended) | ||
DD_REGISTRY_DOCR_{REGISTRY_NAME}_LOGIN | ⚪ | Registry username for basic auth | doctl when TOKEN is set | |
DD_REGISTRY_DOCR_{REGISTRY_NAME}_PASSWORD | ⚪ | Registry password for basic auth | ||
DD_REGISTRY_DOCR_{REGISTRY_NAME}_AUTH | ⚪ | Base64 encoded login:password credential | Valid base64 string |
TOKEN is a convenience alias. drydock maps it to basic auth automatically.The DOCR endpoint is fixed to
https://registry.digitalocean.com.Examples
Configure with API token
services:
drydock:
image: codeswhat/drydock
...
environment:
- DD_REGISTRY_DOCR_PRIVATE_TOKEN=dop_v1_xxxxxxxxxxxxxdocker run \
-e "DD_REGISTRY_DOCR_PRIVATE_TOKEN=dop_v1_xxxxxxxxxxxxx" \
...
codeswhat/drydockConfigure with explicit basic auth
services:
drydock:
image: codeswhat/drydock
...
environment:
- DD_REGISTRY_DOCR_PRIVATE_LOGIN=doctl
- DD_REGISTRY_DOCR_PRIVATE_PASSWORD=dop_v1_xxxxxxxxxxxxxdocker run \
-e "DD_REGISTRY_DOCR_PRIVATE_LOGIN=doctl" \
-e "DD_REGISTRY_DOCR_PRIVATE_PASSWORD=dop_v1_xxxxxxxxxxxxx" \
...
codeswhat/drydockConfigure with AUTH from ~/.docker/config.json
If your Docker config has:
{
"auths": {
"registry.digitalocean.com": {
"auth": "ZG9jdGw6ZG9wX3YxX3h4eHh4eHh4eHh4"
}
}
}use:
docker run \
-e "DD_REGISTRY_DOCR_PRIVATE_AUTH=ZG9jdGw6ZG9wX3YxX3h4eHh4eHh4eHh4" \
...
codeswhat/drydock