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_PUBLIC_LOGINA valid Docker Hub LoginDD_REGISTRY_HUB_PUBLIC_TOKEN must be defined
DD_REGISTRY_HUB_PUBLIC_PASSWORDA valid Docker Hub TokenDD_REGISTRY_HUB_PUBLIC_LOGIN must be defined
DD_REGISTRY_HUB_PUBLIC_TOKENA valid Docker Hub Token (deprecated; replaced by DD_REGISTRY_HUB_PUBLIC_PASSWORDDD_REGISTRY_HUB_PUBLIC_LOGIN must be defined
DD_REGISTRY_HUB_PUBLIC_AUTHA valid Docker Hub Base64 Auth StringDD_REGISTRY_HUB_PUBLIC_LOGIN/TOKEN must not be defined

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