Skip to content
Skip to Content

Deploy an image

Run a public container image from Docker Hub or another registry, and move it to a new tag.

A service can run a container image that is already built: from Docker Hub, GitHub's registry or any other registry that serves it publicly. Your servers pull the image when the deployment rolls out.

The image and its tag

SettingWhat it takes
ImageA name such as nginx, bitnami/redis or ghcr.io/org/app. Without a registry in front, the image comes from Docker Hub. Lowercase letters, digits, ., _, - and /, with an optional registry and port.
TagUp to 128 letters, digits, dots, dashes or underscores, such as 1.27 or v2.3.0. latest when you give none.

Public images only, by tag

Your servers pull images without signing in to a registry, so the image must be public. An image cannot be pinned to a digest (@sha256:…) yet; use a tag that you never move, such as a version or a commit hash.

Create a service from an image

Open the project. Click New service and choose A Docker image. Type the image as you would pull it, such as nginx:1.27: the tag after the colon goes to Tag. Set its port under Networking, tick a server under Servers it may run on, and click Create service.

Every other setting, from replicas to the health check, is on Service settings. Then deploy it.

The container runs the image's own command. To run another, set a start command: --start "<command>" in the CLI or startCommand in the API. OpenPanel runs it with /bin/sh -c.

Move to a new tag

Change the tag, then deploy. The change does nothing until the deploy.

Open the project and click the service on the canvas. On its Settings tab, change the Tag in the Source card and click Save. Then click Deploy on its Overview tab.

To build the image in your own CI and deploy it from there, see Deploy from CI.

What your server does

When the deployment rolls out, the agent on each server it is placed on pulls the image, gives it a name of its own for this deployment, and starts the containers beside the ones that run now. A rollback pulls the earlier tag again.

If the pull fails, the deployment fails with "The image could not be pulled:" and the registry's reason, and what ran before keeps running. See A deploy or a health check fails.