ConfigurationRegistriesDocker Hub
HUB (Docker Hub incl private repositories)
The hub registry lets you configure Docker Hub integration.

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 var | Required | Description | Supported values | Default value when missing |
|---|---|---|---|---|
DD_REGISTRY_HUB_PUBLIC_LOGIN | ⚪ | A valid Docker Hub Login | DD_REGISTRY_HUB_PUBLIC_TOKEN must be defined | |
DD_REGISTRY_HUB_PUBLIC_PASSWORD | ⚪ | A valid Docker Hub Token | DD_REGISTRY_HUB_PUBLIC_LOGIN must be defined | |
DD_REGISTRY_HUB_PUBLIC_TOKEN | ⚪ | A valid Docker Hub Token (deprecated; replaced by DD_REGISTRY_HUB_PUBLIC_PASSWORD | DD_REGISTRY_HUB_PUBLIC_LOGIN must be defined | |
DD_REGISTRY_HUB_PUBLIC_AUTH | ⚪ | A valid Docker Hub Base64 Auth String | DD_REGISTRY_HUB_PUBLIC_LOGIN/TOKEN must not be defined |
Examples
Configure Authentication using Login/Token
1. Login to your Docker Hub Account

2. Go to your Security Settings
- Create a new Access Token
- Copy it and use it as the
DD_REGISTRY_HUB_PUBLIC_TOKENvalue

services:
drydock:
image: codeswhat/drydock
...
environment:
- DD_REGISTRY_HUB_PUBLIC_LOGIN=mylogin
- DD_REGISTRY_HUB_PUBLIC_PASSWORD=fb4d5db9-e64d-3648-8846-74d0846e55dedocker run \
-e DD_REGISTRY_HUB_PUBLIC_LOGIN="mylogin"
-e DD_REGISTRY_HUB_PUBLIC_PASSWORD="fb4d5db9-e64d-3648-8846-74d0846e55de"
...
codeswhat/drydockConfigure Authentication using Base64 encoded credentials
1. Create an Access Token
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