DrydockDrydock
ConfigurationRegistriesDocker Hub

HUB (Docker Hub incl private repositories)

The hub registry lets you configure Docker Hub integration.

logo

The hub registry lets you configure Docker Hub integration.

Currently, the supported credentials are:

  • Docker Hub auth + Docker Hub Access Token
  • Docker Base64 credentials (like in .docker/config.json)
  • Docker Hub auth + Docker Hub password (not recommended)
By default, if you don't configure any registries, drydock will configure a default one with anonymous access. Don't forget to configure authentication if you're using Docker Hub Private Repositories.

Variables

Env varRequiredDescriptionSupported valuesDefault value when missing
DD_REGISTRY_HUB_{REGISTRY_NAME}_LOGINA valid Docker Hub LoginRequired with PASSWORD or TOKEN
DD_REGISTRY_HUB_{REGISTRY_NAME}_PASSWORDA valid Docker Hub password or access tokenDD_REGISTRY_HUB_{REGISTRY_NAME}_LOGIN must be defined
DD_REGISTRY_HUB_{REGISTRY_NAME}_TOKENA valid Docker Hub access token (alternative to PASSWORD)DD_REGISTRY_HUB_{REGISTRY_NAME}_LOGIN must be defined
DD_REGISTRY_HUB_{REGISTRY_NAME}_AUTHA valid Docker Hub Base64 Auth StringCannot be combined with LOGIN/PASSWORD/TOKEN
Registry auth now fails closed for invalid combinations. LOGIN must be paired with PASSWORD (or TOKEN alias), and AUTH cannot be combined with LOGIN/PASSWORD/TOKEN.

Examples

Configure Authentication using Login/Token

1. Login to your Docker Hub Account

image

2. Go to your Security Settings

  • Create a new Access Token
  • Copy it and use it as the DD_REGISTRY_HUB_PUBLIC_TOKEN value

image

services:
  drydock:
    image: codeswhat/drydock
    ...
    environment:
      - DD_REGISTRY_HUB_PUBLIC_LOGIN=mylogin
      - DD_REGISTRY_HUB_PUBLIC_PASSWORD=fb4d5db9-e64d-3648-8846-74d0846e55de
docker run \
  -e DD_REGISTRY_HUB_PUBLIC_LOGIN="mylogin"
  -e DD_REGISTRY_HUB_PUBLIC_PASSWORD="fb4d5db9-e64d-3648-8846-74d0846e55de"
  ...
  codeswhat/drydock

Configure Authentication using Base64 encoded credentials

1. Create an Access Token

See above

2. Encode with Base64

Concatenate $auth:$password and encode with Base64.

For example,

  • if your auth is johndoe
  • and your password is 2c1bd872-efb6-4f3a-81aa-724518a0a592
  • the resulting encoded string would be am9obmRvZToyYzFiZDg3Mi1lZmI2LTRmM2EtODFhYS03MjQ1MThhMGE1OTI=
services:
  drydock:
    image: codeswhat/drydock
    ...
    environment:
      - DD_REGISTRY_HUB_PUBLIC_AUTH=am9obmRvZToyYzFiZDg3Mi1lZmI2LTRmM2EtODFhYS03MjQ1MThhMGE1OTI=
docker run \
  -e DD_REGISTRY_HUB_PUBLIC_AUTH="am9obmRvZToyYzFiZDg3Mi1lZmI2LTRmM2EtODFhYS03MjQ1MThhMGE1OTI="
  ...
  codeswhat/drydock

On this page