Skip to Content
LogiStackDocs
Deploy

Container registries

Use LogiStack's built-in registry or connect GHCR, Docker Hub or any OCI registry for built images, with retention, a default registry and private image pulls.

A registry is where LogiStack pushes the images it builds and where every node pulls them from. A single server can build and run without one, but a swarm with more than one node, and any multi-architecture build, needs a registry. LogiStack can run its own registry on your server, or push to GitHub Container Registry, Docker Hub or any OCI registry.

How LogiStack uses registries

  • Builds push to the default registry, as <registry>/<org>/<service>:<deploymentId>. Tags are immutable, so a rollback pulls exactly the image it names.
  • Nodes pull with the default registry's credentials.
  • An image service gets those credentials only when its image lives on the default registry's host. Pulls from any other host are anonymous.
  • Each registry keeps the newest N images of each service. Older ones are deleted by an hourly prune, so rollbacks reach that far back.

The Registries page: the local registry turned on as the default with its address, and a GHCR registry below it under Push to

Use the local registry

The local registry runs on your own server, behind the proxy, with generated credentials. Images never leave your servers.

Open Registries

Select Registries under Integrations in the sidebar.

Turn it on

Under Local registry, turn on Registry on this server. Turning it on makes it the default. The worker brings it up within about 30 seconds.

It needs the instance domain from setup, because it is served on registry.<domain>, for example registry.srv1.example.com.

Log in from your machine (optional)

Select Show credentials for docker login to copy the username, the password, or the whole docker login command. Docker asks for the password; it never goes on the command line.

docker login registry.srv1.example.com

To turn it off, switch the toggle off and choose:

  • Keep images: turn it back on later and every image and credential is still there.
  • Delete images and credentials: frees the disk. Rollbacks to images built here stop working. This can't be undone.

Running services keep running either way. Choose another default before the next build.

Add an external registry

Start the wizard

On Registries, select Add registry.

The Add a registry wizard on its Choose a registry step: GitHub Container Registry, Docker Hub and Any OCI registry

Choose a registry

Pick GitHub Container Registry, Docker Hub or Any OCI registry (GitLab, Harbor, Zot, ECR behind a proxy, or your own registry:2). Select Continue.

Enter credentials

Credentials are stored encrypted. Nodes use them to pull, builds to push.

  1. Select Create a token on GitHub and create a classic personal access token with write:packages. Add read:packages to pull private images from other accounts, and delete:packages so retention can remove old images.
  2. Enter your GitHub username and paste the Personal access token (ghp_…).
  3. Optionally set Namespace: your user or an organization, such as acme-retail. Images go to ghcr.io/acme-retail/<service>.

Test push and pull

On Test push and pull, LogiStack logs in, pushes a test image and pulls it back. Nothing is saved until the test passes and you confirm.

Set options

On Options:

  • Make it the default: new builds push here instead of the current default.
  • Images to keep: keep last N images per service, 1 to 500. The newest images of each service survive the hourly prune.

Add it

On Review, select Add registry.

Change the default or retention

Under Push to, select the radio next to a registry to make it the default (builds push to the default). Change Keep last … images per service next to any registry.

Remove a registry

Select the trash icon next to the registry, then Remove registry. Images already pushed stay in the registry. Builds stop pushing to it, and if it was the default there is no default until you choose one.

Check that it worked

Deploy a Git service. The log shows the push to the new registry:

==> pushing ghcr.io/acme-retail/web:dep_8k2p1q

Common problems

  • The test fails with "denied": the token lacks write access (write:packages on GHCR, Read & Write on Docker Hub), or the namespace belongs to someone else.
  • Old images aren't deleted: the token can't delete. Use delete:packages on GHCR or Read, Write & Delete on Docker Hub.
  • a multi-node swarm needs a registry: turn on the local registry or add one and make it the default.
  • The local registry can't be turned on: it needs the instance domain from setup. See Setup wizard.

On this page