Container registries
Container registries (/connect/registries, under Advanced > Integrations) save
a registry login once so you can deploy and pull private images without pasting a
token every time. Public images never need one. Saving registries is on every plan;
deploying Docker apps and stacks works on every plan (within the plan’s Docker apps &
stacks quota). Only the account owner can manage
registries.
Add a registry, step by step
Section titled “Add a registry, step by step”- Open Advanced > Integrations > Container registries and click Add registry.
- Pick the registry (GHCR, Docker Hub, GitLab or another) or type a Registry host
with no
https://(for exampleregistry.example.com:5000). The default host is Docker Hub (docker.io). - Enter a Name, the username and an Access token with pull (read) scope:
- GHCR: a classic personal access token with
read:packages. - Docker Hub: a personal access token.
- GitLab: a deploy token with
read_registry.
- GHCR: a classic personal access token with
- Click Add & verify. MZPanel checks the login against the registry right away (the Docker Registry v2 token handshake). The token is stored encrypted and never shown again.
Use Edit or rotate token to rename the connection or change its host, username or token; leave the token blank to keep the current one.
Using it
Section titled “Using it”In the Deploy drawer and the app or stack edit drawers, choose Saved connection (MZPanel preselects the one whose host matches the image), or Enter token for a one-off login (“use once, don’t save”). The control plane decrypts the saved token only when it dispatches the job and passes it to the agent; the token is masked in the audit trail and dropped from the stored job.
On the box the agent logs in to a private Docker config for that app
(/etc/mz/apps/<name>.docker/) or stack (<stack dir>/.mz-docker/), and every later
pull for it uses that login: updates, auto-updates, rollbacks, rebuilds, PR previews and
the image update check. The agent never runs docker logout and never touches
/root/.docker, so a login you made by hand on the box keeps working. Saved logins are
left out of backups and removed when the app or stack is deleted.
Automate it
Section titled “Automate it”REST and MCP are on every plan:
| Task | MCP tool | REST |
|---|---|---|
| List connections (tokens never returned) | registry_connections_list | GET /v1/registry-connections |
| Check a connection | registry_connections_verify | POST /v1/registry-connections/{id}/verify |
| Add one | registry_connections_create (name, host, username, token; level full + webhooks:admin) | POST /v1/registry-connections |
| Rename or rotate | registry_connections_update (webhooks:admin) | PATCH /v1/registry-connections/{id} |
| Remove | registry_connections_delete (webhooks:admin) | DELETE /v1/registry-connections/{id} |
Pass the connection’s id as registryConnectionId on any image-pulling job
(app.create, app.update, stack.deploy, stack.pull and others) or on
moves_create. Without a saved connection, a job can carry registryUser,
registryPass and registryServer (registrySave: false for a one-off).
Gotchas & troubleshooting
Section titled “Gotchas & troubleshooting”- “The registry rejected this username or token.” The token lacks pull scope or has expired. Rotate it with Edit or rotate token.
registry_login_failedon a job means the box’s login failed; the message is Docker’s.400 bad_registry_connection. The connection id is unknown or belongs to another workspace.- A private-address registry can’t be verified from the control plane. The page says so; the box may still reach it.
- Shared-app clients can’t use your logins. A client working on an app you shared can’t pick one of your registry connections.
Related
Section titled “Related”- Docker apps & stacks
- Apps · Moves & clones
- Git providers: the same idea for source repositories.