← All comparisons

runner vs Dokku

Two per-server CLI options; choose by the workflow you want to run.

What it does well

  • git push workflow, buildpacks, or Dockerfile.
  • Configurable checks and deploys that swap containers.

Same goal, two paths

See how to do each task with both tools. The examples assume the setup described in each case; adapt names, credentials and infrastructure.

01 / USE CASE

Ship a new version

The shop app is already registered in both tools, with source access and the server configured. On the Runner side, commands run on a Linux server with Docker and Traefik already set up.

With Dokku

  1. From the approved checkout, use the dokku remote already configured for the shop app. The example uses master as the deploy branch on the target.
  2. Push HEAD to that branch and follow the build and deploy. Check the route and the logs; SSH access and the builder must already be set up.
Examplebash · example
git push dokku HEAD:master
source: Dokku · Git deployment ↗

With runner

  1. Publish the new version to the configured source. In the Git + Dockerfile path, the Runner fetches the code and builds on the server, without pushing the app image to a registry.
  2. With polling configured, the pipeline runs automatically. To trigger it now, run the commands below on the server and check the status and history.
Examplebash · example
runner preflight shop
runner deploy shop
runner status shop
runner logs history shop

The Runner works on one server at a time. Host-published ports and shared writable volumes may require a downtime window.

02 / USE CASE

Roll back a version

The shop app is already registered in both tools, with source access and the server configured. On the Runner side, commands run on a Linux server with Docker and Traefik already set up. This path republishes the previous code through Git; it does not assume Dokku lacks rollback features.

With Dokku

  1. Find the previous version's commit in Git and create a commit that reverts the later changes, through the project's review flow.
  2. Push that new commit to the deploy branch. Dokku rebuilds the application with the restored code; dependencies and base images must be available and pinned to reproduce the build.
source: Dokku · publish code through Git ↗

With runner

  1. List the retained versions and confirm the previous one still has its code and image available.
  2. Roll back to the previous version and check the application. To pick a different retained version, use --version with the listed identifier.
Examplebash · example
runner versions shop
runner rollback shop
runner status shop
runner logs history shop

A rollback changes code/image; it does not undo migrations, databases or persistent files. Check that the current configuration is compatible with the previous version. Rebuilding a commit may produce a different image if the build is not reproducible.

03 / USE CASE

Change configuration

The shop app is already registered in both tools, with source access and the server configured. On the Runner side, commands run on a Linux server with Docker and Traefik already set up.

With Dokku

  1. On the Dokku host, set LOG_LEVEL for the shop app.
  2. Changing the configuration triggers a deploy/restart by default. Wait for it to finish and check the logs to confirm the level the application uses.
Examplebash · example
dokku config:set shop LOG_LEVEL=info
source: Dokku · config:set ↗

With runner

  1. In this example, shop already uses env_sync: skip in the reviewed manifest, which preserves the local environment; LOG_LEVEL is not pinned under environment in the manifest.
  2. Write the non-secret variable on the server and force the container to be recreated. Check the log level in the application's behavior.
Examplebash · example
runner env set shop LOG_LEVEL info
runner deploy shop --force
runner status shop

The application must read LOG_LEVEL at runtime. Pipeline variables only reach the container if the deploy process passes them along.

Documented reports and historical context
  • In closed report #8282, traffic reached both new and old containers; the maintainer pointed to an application-side fix, without changing label-based routing.

    source: Dokku · closed report #8282 ↗

    This history shows why the traffic cutover matters. In the runner, local mode switches the route in the file provider after the healthcheck. There is still a window with published ports or shared writable volumes.

  • Closed report #5435 describes a partial failure between web and scheduler that took the site down.

    source: Dokku · past report #5435 ↗

    The runner checks the new container before removing the old one. Each app has its own cycle: there is no atomic promotion of web and scheduler as a set. Test dependencies between apps.

  • In closed report #6518, the author took zero-downtime to be active, but the configuration still disabled all checks.

    source: Dokku · past report #6518 ↗

    In the runner, check the deploy status and history to confirm the observed version and health. This does not prove zero interruption; also test the route and the app's behavior.

When to stay with the tool

  • Stay with Dokku if the git push workflow, buildpacks, and plugins already meet your needs. Both work per server; multiple hosts require an external layer.

How to evaluate the deploy step

The commands use shop as the example app. Adjust the identifier and instance to the generated manifest. Only remove the previous deploy after validating the new path.

  1. Convert Procfile and checks into an image/Dockerfile and a manifest. Catalog plugins, mounts, and dependencies; do not assume automatic equivalence. Schedule the cutover from nginx to Traefik and check volumes before retiring the git push deploy.

  2. Prepare a Linux server with compatible Docker and Traefik, DNS, and a persistence strategy. Back up your data with your backup tool and test the restore. Install and initialize the runner following the getting started guide.

    Example with runnerbash · example
    curl -sL https://get.runnerci.com/init.sh | sudo bash
    runner init
  3. In the app folder with a Dockerfile or image, generate and review the manifest. Check network, healthcheck, secrets, and version. The wizard does not deploy on its own.

    Example with runnerbash · example
    runner wizard --path .
    runner validate --path .deploy.yml
  4. Example for a GitHub repository: commit the reviewed manifest to the main branch before registering. Replace my-org/shop with your repo, main with the published branch, and production with the reviewed instance; set up read access to the private repo first. On the server, register, review the preflight, and only then deploy.

    Example with runnerbash · example
    runner add --repo my-org/shop --branch main --instance production --ckey v2
    runner preflight shop
    runner deploy shop
    runner status shop
    runner logs history shop
  5. Validate the domain and the app's behavior before shutting down the previous deploy. Disable the old trigger to avoid two deployers on the same app. Set up polling to automate the pipeline on the server. If you prefer an external build, configure the source of the image or artifact produced by CI. The getting started guide details the prerequisites.