DrydockDrydock
ConfigurationRegistries

IBMCR (IBM Cloud Container Registry)

The ibmcr registry lets you configure IBM Cloud Container Registry integration.

The ibmcr registry lets you configure IBM Cloud Container Registry integration.

Drydock automatically detects IBMCR registries by matching *.icr.io hostnames.

Variables

Env varRequiredDescriptionSupported valuesDefault value when missing
DD_REGISTRY_IBMCR_{REGISTRY_NAME}_APIKEYIBM Cloud API keyAutomatically sets login to iamapikey
DD_REGISTRY_IBMCR_{REGISTRY_NAME}_LOGINRegistry usernameDD_REGISTRY_IBMCR_{REGISTRY_NAME}_PASSWORD must be defined
DD_REGISTRY_IBMCR_{REGISTRY_NAME}_PASSWORDRegistry passwordDD_REGISTRY_IBMCR_{REGISTRY_NAME}_LOGIN must be defined
DD_REGISTRY_IBMCR_{REGISTRY_NAME}_AUTHBase64-encoded login:password stringDD_REGISTRY_IBMCR_{REGISTRY_NAME}_LOGIN/PASSWORD/APIKEY must not be defined

Examples

services:
  drydock:
    image: codeswhat/drydock
    ...
    environment:
      - DD_REGISTRY_IBMCR_PRIVATE_APIKEY=xxxxx
docker run \
  -e "DD_REGISTRY_IBMCR_PRIVATE_APIKEY=xxxxx" \
  ...
  codeswhat/drydock

Configure with login and password

services:
  drydock:
    image: codeswhat/drydock
    ...
    environment:
      - DD_REGISTRY_IBMCR_PRIVATE_LOGIN=iamapikey
      - DD_REGISTRY_IBMCR_PRIVATE_PASSWORD=xxxxx
docker run \
  -e "DD_REGISTRY_IBMCR_PRIVATE_LOGIN=iamapikey" \
  -e "DD_REGISTRY_IBMCR_PRIVATE_PASSWORD=xxxxx" \
  ...
  codeswhat/drydock

Configure with base64 auth

services:
  drydock:
    image: codeswhat/drydock
    ...
    environment:
      - DD_REGISTRY_IBMCR_PRIVATE_AUTH=aWFtYXBpa2V5Onh4eHh4
docker run \
  -e "DD_REGISTRY_IBMCR_PRIVATE_AUTH=aWFtYXBpa2V5Onh4eHh4" \
  ...
  codeswhat/drydock

How to create an API key on IBM Cloud

Go to your IBM Cloud Console

Navigate to Manage > Access (IAM) > API keys.

Create an API key

Click Create an IBM Cloud API key, give it a name and description, then copy the generated key.

The API key is the simplest authentication method. When provided, drydock automatically uses iamapikey as the login and the API key as the password.

On this page