ServerAvatarDocs
Integrations

Docker Registries

Store a registry username and access token so container applications on this server can pull private images, and test that they work.

A container application pulls its image from a registry. Public images need nothing: the pull is anonymous and it works. Docker Registries exist for the other case, a private image on Docker Hub, GitHub Container Registry, GitLab's registry, or a registry of your own.

You add a credential once here. Then you choose it on a container application, either when you create the application or later under Registry on its Container screen. An application left on None — pull anonymously keeps pulling without a login.

Open it from Integrations → Docker Registries in the sidebar.

Only on a container server

The stack is chosen when the panel is installed and cannot be changed afterwards. On a server installed with lemp, lamp, ols or mern there are no containers, so a registry credential would have nothing to pull for. The sidebar leaves Docker Registries out of Integrations there, and the address (/integrations/registries), if you open it, answers:

The Docker Registries page on a server that hosts no containers, saying This server hosts no containers and that registry credentials are for pulling container images

This server hosts no containers (Registry credentials are for pulling container images. This server runs none, so there is nothing for a credential to pull for.). To get the feature, install the panel with --stack=docker.

Everything below describes a container server.

Add a credential

Open Integrations → Docker Registries and click Add registry. With nothing saved yet the page says No registry credentials yet and lists the four kinds of registry. You only need a credential to run a private image, so have your registry username and an access token ready. Use a token, not your account password.

Choose where the image is hosted (Where is the image hosted?): Docker Hub, GitHub Container Registry, GitLab Container Registry or Other or self-hosted registry. The form changes with your choice. Change in the form takes you back to this list.

Fill in the form (see the table below) and click Add registry.

Read the result. As soon as you save a new credential, the panel tests it against the registry. A message says <name> accepted this username and token. or gives the reason it did not (see Common errors). The credential is saved either way, so you can Edit it and test again.

What a credential holds

FieldRuleNotes
NameRequired, up to 100 characters, one line, and unique.How the credential is listed, for example on an application's Container screen. The form fills in the provider's name; change it if you like.
Registry addressRequired, up to 255 characters. Only for GitLab and Other.The host on its own: ghcr.io, not ghcr.io/your-org. No https:// needed, no repository path, no username or password in it. Add a port if yours uses one.
UsernameRequired, up to 255 characters, one line.Whatever that registry accepts for docker login.
Access tokenRequired when adding, up to 4,096 characters, no spaces or line breaks.A token, not your account password. Read-only access is enough, because the panel only pulls. It is stored on the server and never shown again.

What each provider needs:

  • Docker Hub. The address is fixed (docker.io). The username is your Docker ID, not the email you sign in with. Use a personal access token with Read access. An account password does not work when two-factor authentication is on.
  • GitHub Container Registry. The address is fixed (ghcr.io). The username is your GitHub username. Use a classic personal access token with read:packages. Fine-grained tokens do not work here.
  • GitLab Container Registry. The address starts as registry.gitlab.com and you can change it for a self-hosted GitLab. Use a project or group deploy token with read_registry. The username is the deploy token's username, not your GitLab account. A personal access token with the same scope also works.
  • Other or self-hosted registry. Any registry that accepts docker login, including a private one on your own network, such as registry.example.com:5000.

Each provider's form has a link to the page where you create the token (Open Docker Hub access tokens, Open GitHub personal access tokens, Read GitLab's deploy token guide).

Why the address is fixed for Docker Hub and GitHub

Docker stores a credential under one exact address and ignores it for any other spelling, so a typo would look like a credential that silently does nothing. For the same reason an address with a path in it (a namespace such as ghcr.io/my-org) is refused with Enter the host on its own — ghcr.io, not ghcr.io/your-org, and no username or password.

The list

Each saved credential is a row with its name, the provider, the address and username, its test status, and how many applications use it.

StatusMeaning
ConnectedThe last test succeeded.
Not yet testedThe panel has not tested it. This is not a fault.
Last test failedThe last test failed. The reason follows.

Test a credential

Click Test connection on a row. The panel contacts the registry from this server and says whether it accepted the username and token. A credential is also tested automatically when you save it with a new token, address or username.

Edit or remove a credential

  1. Open the ⋯ menu on the row (Actions for <name>).
  2. Choose Edit to change it. Leave Access token empty to keep the stored token, because the panel cannot show you the old one. Type a new one to replace it. Click Save.
  3. Or choose Remove, read Remove <name>? and confirm.

If applications still use the credential, the dialog says so: <n> applications are set to pull with this credential. They are not deleted and keep running, but their next pull will be anonymous, and will fail if the image is private. The Container screen of such an application then shows Deleted credential — this application's next pull will be anonymous.

Limits

  • Pull only. The credential is never used to push an image.
  • Short-lived tokens do not survive. AWS ECR issues credentials that last twelve hours. The form warns about registries that issue short-lived tokens: A token pasted here will authenticate now and start failing once it expires, because the panel does not refresh it. Use a registry with a long-lived token, or update the credential by hand.
  • Every test contacts a registry you named. Testing is limited to 10 a minute, and creating, editing and removing to 20 a minute each.
  • The token is write-only. There is no way to read it back.

Who can do this

  • Seeing the list needs the Docker Registries permission at View. Adding, editing, testing and removing needs Manage. Without it the buttons are disabled and the page says Your role does not include Registry with Manage access. Ask an administrator to grant it.
  • This is its own permission, separate from Docker (networks and volumes).
  • Choosing a stored credential for an application needs View on Docker Registries as well as the permission to change the application.

Common errors

  • The registry refused this username and token. The credential is wrong, expired or lacks read access. Check the username rule for the provider and create a new token.
  • The registry could not be reached from this server. Check the address, and that this server can reach the registry over HTTPS.
  • The registry refused the connection without saying why. Neither of the two cases above. Test again, and check the registry's own logs.
  • Enter the host on its own — ghcr.io, not ghcr.io/your-org, and no username or password. The address has a path or credentials in it.
  • Paste the token with no spaces or line breaks. The token contains whitespace. Copy it again.
  • Give this credential a name you will recognise. The name is longer than 100 characters. A name that another credential already uses is refused too: pick a different one.

On this page