ConfigurationRegistriesGHCR
GHCR (Github Container Registry)
The ghcr registry lets you configure GitHub Container Registry integration.

The ghcr registry lets you configure GHCR integration.
Variables
| Env var | Required | Description | Supported values | Default value when missing |
|---|---|---|---|---|
DD_REGISTRY_GHCR_{REGISTRY_NAME}_USERNAME | ⚪ | Github username | ||
DD_REGISTRY_GHCR_{REGISTRY_NAME}_TOKEN | ⚪ | Github token | Github password or Github Personal Token |
Examples
Configure to access private images
services:
drydock:
image: codeswhat/drydock
...
environment:
- DD_REGISTRY_GHCR_PRIVATE_USERNAME=john@doe
- DD_REGISTRY_GHCR_PRIVATE_TOKEN=xxxxx docker run \
-e DD_REGISTRY_GHCR_PRIVATE_USERNAME="john@doe" \
-e DD_REGISTRY_GHCR_PRIVATE_TOKEN="xxxxx" \
...
codeswhat/drydockHow to create a Github Personal Token
Go to your Github settings and open the Personal Access Token tab
Open GitHub Personal Access Tokens
Click on Generate new token
Choose an expiration time & appropriate scopes (read:packages is only needed for drydock) and generate.

Copy the token & use it as the DD_REGISTRY_GHCR_{REGISTRY_NAME}_TOKEN value
