DrydockDrydock
ConfigurationRegistriesECR

ECR (Amazon Elastic Container Registry)

The ecr registry lets you configure ECR integration.

logo

The ecr registry lets you configure ECR integration.

Variables

Env varRequiredDescriptionSupported valuesDefault value when missing
DD_REGISTRY_ECR_{REGISTRY_NAME}_ACCESSKEYIDA valid AWS Access Key Id (required for private images)Standard AWS Credentials
DD_REGISTRY_ECR_{REGISTRY_NAME}_SECRETACCESSKEYA valid AWS Secret Access Key (required for private images)Standard AWS Credentials
DD_REGISTRY_ECR_{REGISTRY_NAME}_REGIONA valid AWS Region Code (required for private images)AWS Region list
The AmazonEC2ContainerRegistryReadOnly Policy (or higher) must be attached to the AWS IAM User.

Examples

services:
  drydock:
    image: codeswhat/drydock
    ...
    environment:
      - DD_REGISTRY_ECR_PRIVATE_ACCESSKEYID=xxx
      - DD_REGISTRY_ECR_PRIVATE_SECRETACCESSKEY=xxx
      - DD_REGISTRY_ECR_PRIVATE_REGION=eu-west-1 
docker run \
  -e DD_REGISTRY_ECR_PRIVATE_ACCESSKEYID="xxx" \
  -e DD_REGISTRY_ECR_PRIVATE_SECRETACCESSKEY="xxx" \
  -e DD_REGISTRY_ECR_PRIVATE_REGION="eu-west-1" \
  ...
  codeswhat/drydock

How to create an AWS IAM user and get programmatic access

1. Login to your Go to the IAM Service from your AWS Console and create a new user

image

2. Attach the AmazonEC2ContainerRegistryReadOnly policy to the user

image

3. Get your AccessKeyId and your Secret Access Key and configure drydock with them

image

On this page