Dockerfile:
ENV Variables to Set
For example, to allow Miget to access Docker Hub (example below) or other private registries, set the following variables:-
EXTERNAL_REGISTRY_URL=docker.io -
EXTERNAL_REGISTRY_USERNAME=<your_username> -
EXTERNAL_REGISTRY_PASSWORD=<docker_hub_token>
For security reasons, it’s recommended to create a Read-Only token for authentication. This ensures that the Miget builder can pull images but cannot push any images to the external registry, maintaining stricter access control.
Supported Registries
Amazon Elastic Container Registry (ECR)
-
EXTERNAL_REGISTRY_URL=$AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.comEnsure the$AWS_ACCOUNT_IDand$AWS_REGIONvalues match those in your AWS account.
Azure Container Registry (ACR)
-
EXTERNAL_REGISTRY_URL=$REGISTRY_NAME.azurecr.ioReplace$REGISTRY_NAMEwith your registry’s name in Azure.
Docker Hub
-
EXTERNAL_REGISTRY_URL=docker.ioMake sure you own the namespace (you pull from) specified in theDockerfile
DigitalOcean Container Registry
EXTERNAL_REGISTRY_URL=registry.digitalocean.com
GitHub Container Registry (GHCR)
EXTERNAL_REGISTRY_URL=ghcr.io
Quay.io
EXTERNAL_REGISTRY_URL=quay.io

