Deploy a Docker image

Run an image that is already built, from any registry you can reach.

Run an image that is already built, from Docker Hub, GitHub Container Registry or any registry you can reach, like nginx:1.27-alpine or ghcr.io/acme/api:v2.3.1. The agent pulls it and starts it.

Use it for software you did not write and for images your own CI builds. Nothing is built, so there is no build log, no build cache and no rollback: the tag is your version control.

Deploy one

  1. Add New, then Application, then the Docker Image tile.
  2. Type the reference. Docker Hub names autocomplete, and a : lists the tags. App name is filled in from the image.
  3. Click Deploy. The server and the port are under Advanced, already filled in.
The Docker Image source step of the wizard

A green check next to the reference means the image exists. A lock means it is private: the check runs without your registry credentials, but the deploy pulls with them.

The port

Deplo reads the port from the image's EXPOSE: nginx and traefik/whoami give 80. An image that declares several ports or none, or that is private, gets 3000.

  • Before the first deploy: Advanced, Container port.
  • After: each hostname's Application port in the app's Domains tab. It applies without a redeploy, and lets one image serve two hostnames on two ports.

An official database image (postgres, mysql, mariadb, mongo, redis, clickhouse/clickhouse-server) gets no address. For a database, use Databases.

Private registries

Add credentials once in Settings -> Registries and every app of the team pulls with them. See Container registries.

Settings -> Registries, where the credentials for a private image live

Settings that matter for an image app

SettingWhereNote
Image referenceSettings -> Deployments, Source cardChange the tag, Save source, then Redeploy
Environment variablesEnvironmentThe usual way to configure this kind of software
VolumesSettings -> StorageType the full path, like /app/uploads: it is not guessed
Resource limitsSettings -> ResourcesUseful for software you did not write

Good to know

  • Pin a tag or a digest, not latest. latest is pulled again only on a redeploy, and Security updates offers Update when a newer build fixes a flaw.
  • Names under deplo/ are refused. That is where Deplo keeps the images it builds for apps.
  • Multi-container software needs Compose. If the vendor ships a docker-compose.yml, use Compose apps or look in Templates.

Troubleshooting

SymptomWhat to check
pull access deniedThe image is private and no registry credential matches its host. Add one in Settings -> Registries.
The container starts and exits immediatelyIt usually needs a variable or a volume. Read the Logs.
The URL answers 502Wrong port: Deplo could not read one from the image and used 3000. Set Application port on the domain.

More in Deploys and builds.

Next steps

Did this page help you?

On this page