DrydockDrydock
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}_TOKENDigitalOcean API token (recommended)
DD_REGISTRY_DOCR_{REGISTRY_NAME}_LOGINRegistry username for basic authdoctl when TOKEN is set
DD_REGISTRY_DOCR_{REGISTRY_NAME}_PASSWORDRegistry password for basic auth
DD_REGISTRY_DOCR_{REGISTRY_NAME}_AUTHBase64 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
    ...
    environment:
      - DD_REGISTRY_DOCR_PRIVATE_TOKEN=dop_v1_xxxxxxxxxxxxx
docker run \
  -e "DD_REGISTRY_DOCR_PRIVATE_TOKEN=dop_v1_xxxxxxxxxxxxx" \
  ...
  codeswhat/drydock

Configure with explicit basic auth

services:
  drydock:
    image: codeswhat/drydock
    ...
    environment:
      - DD_REGISTRY_DOCR_PRIVATE_LOGIN=doctl
      - DD_REGISTRY_DOCR_PRIVATE_PASSWORD=dop_v1_xxxxxxxxxxxxx
docker run \
  -e "DD_REGISTRY_DOCR_PRIVATE_LOGIN=doctl" \
  -e "DD_REGISTRY_DOCR_PRIVATE_PASSWORD=dop_v1_xxxxxxxxxxxxx" \
  ...
  codeswhat/drydock

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

On this page