Skip to content
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 varRequiredDescriptionSupported valuesDefault value when missing
DD_REGISTRY_DOCR_{REGISTRY_NAME}_TOKEN⚪DigitalOcean API token (recommended)
DD_REGISTRY_DOCR_{REGISTRY_NAME}_LOGIN⚪Registry username for basic authdoctl 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 credentialValid 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:v1.5.2
    ...
    environment:
      - DD_REGISTRY_DOCR_PRIVATE_TOKEN=dop_v1_xxxxxxxxxxxxx

Configure with explicit basic auth

services:
  drydock:
    image: codeswhat/drydock:v1.5.2
    ...
    environment:
      - DD_REGISTRY_DOCR_PRIVATE_LOGIN=doctl
      - DD_REGISTRY_DOCR_PRIVATE_PASSWORD=dop_v1_xxxxxxxxxxxxx

Configure 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:v1.5.2