Skip to content
Container registries Save a login for GHCR, Docker Hub, GitLab or any private registry once, then pull private images in every app, stack, update, rollback and move, from the dashboard or over MCP and REST.

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.

  1. Open Advanced > Integrations > Container registries and click Add registry.
  2. Pick the registry (GHCR, Docker Hub, GitLab or another) or type a Registry host with no https:// (for example registry.example.com:5000). The default host is Docker Hub (docker.io).
  3. 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.
  4. 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.

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.

REST and MCP are on every plan:

TaskMCP toolREST
List connections (tokens never returned)registry_connections_listGET /v1/registry-connections
Check a connectionregistry_connections_verifyPOST /v1/registry-connections/{id}/verify
Add oneregistry_connections_create (name, host, username, token; level full + webhooks:admin)POST /v1/registry-connections
Rename or rotateregistry_connections_update (webhooks:admin)PATCH /v1/registry-connections/{id}
Removeregistry_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).

  • “The registry rejected this username or token.” The token lacks pull scope or has expired. Rotate it with Edit or rotate token.
  • registry_login_failed on 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.