Container registries
BetaCredentials for pulling private images, from GitHub Container Registry, Docker Hub, GitLab or any registry you run yourself.
Settings -> Registries, with the Manage container registries capability.
Beta
This feature is currently beta/experimental and subject to change. It is not recommended for production. Try it out and share your feedback on our GitHub.
One entry per registry, per team, encrypted. Every deploy in that team carries the credentials to its server, which uses them on every pull:
- the image an app of source Docker image runs,
- every image a Compose stack brings up,
- the base image a Dockerfile build starts
FROM.
Nothing is set per app: connect the registry once and every private image from that host pulls, on every server the team deploys to. The token is write-only, with no way to reveal it.
Add one
Open registries settings
Settings -> Registries, then Add registry, and give it a Name.
Pick the type
Pick the Type: GitHub (ghcr.io), Docker Hub, GitLab or Generic / self-hosted. It fills in the default Registry host.
Create a credential on the provider, then fill in the form
Deplo issues no credential: create a read-only one on the provider's own site first. What goes in Registry host, Username and Token differs per provider:
- Registry host:
ghcr.io. - Username: your GitHub username.
- Token: a classic personal access token with
read:packages, from GitHub's Settings -> Developer settings -> Personal access tokens -> Tokens (classic). For an organization's image, the org may also have to grant the token access in its package settings.
Classic token, not fine-grained
Fine-grained tokens have no packages permission, so a pull with one fails with unauthorized even
if the token looks valid.
See GitHub's Container registry docs.
Add it
Click Add registry.
Then reference the image in an app whose source is a Docker image, a Compose stack, or as the base image of a Dockerfile build.
Before using a registry
- Registries are per team. Another team needs its own entry.
- Tokens expire. A pull that used to work and now fails with
unauthorizedis almost always this. - Deplo only pulls, and pushes nothing. Images it builds stay on the server that built them, which is why rollbacks depend on local retention.
Troubleshooting
pull access denied: no credential matches that image's host, or the token can't see that repository.- One image works and another doesn't: same host, different repository permissions on the provider.
- Nothing changed after connecting the registry: credentials are read at deploy time. Deploy again.
- A registry on a private address: the server pulls from it fine. Only the image search in the app form can't reach it, so type the image reference in full.
See Deploys and builds for more.
Next steps
Did this page help you?