Skip to content

Getting Started

DockerWorks releases standalone static binaries and native Linux packages (.deb and .rpm) for Linux amd64 and Linux arm64.

Installation

Detects your CPU architecture, installs the binary, creates /etc/docker-works/config.yaml, and installs the systemd unit:

curl -fsSL https://raw.githubusercontent.com/indikaimk/docker_works/main/scripts/install.sh | sudo bash
# Run as your regular non-root user (auto-enables --rootless when run without sudo)
curl -fsSL https://raw.githubusercontent.com/indikaimk/docker_works/main/scripts/install.sh | bash
curl -fsSL https://raw.githubusercontent.com/indikaimk/docker_works/main/scripts/install.sh | sudo bash -s -- --runtime podman

Available installer flags (passed after bash -s --):

  • --version <ver> (-v): Install a specific release version (default: latest).
  • --runtime <docker|podman> (-r): Select container runtime (auto-detected if docker is missing and podman is present).
  • --rootless (--user): Install as the current non-root user (~/.local/bin, ~/.config/docker-works, ~/.local/share/docker-works, and systemd --user).
  • --skip-docker: Skip host container runtime & Compose prerequisite checks.
  • --build: Force building from local source (requires Go).

Option B: Native Linux Packages (.deb / .rpm)

Download the package for your platform from the GitHub Releases page:

Platform Architecture Command
Ubuntu / Debian amd64 sudo dpkg -i docker-works_<version>_linux_amd64.deb
Ubuntu / Debian arm64 sudo dpkg -i docker-works_<version>_linux_arm64.deb
Fedora / RHEL amd64 sudo rpm -ivh docker-works_<version>_linux_amd64.rpm
Fedora / RHEL arm64 sudo rpm -ivh docker-works_<version>_linux_arm64.rpm

Option C: Direct Binary Download

# Linux Intel (amd64)
curl -fsSL https://github.com/indikaimk/docker_works/releases/latest/download/docker-works_0.1.0_linux_amd64.tar.gz | sudo tar -xz -C /usr/local/bin docker-works

# Linux ARM (arm64)
curl -fsSL https://github.com/indikaimk/docker_works/releases/latest/download/docker-works_0.1.0_linux_arm64.tar.gz | sudo tar -xz -C /usr/local/bin docker-works

Verify & Start

# 1. Check host environment and runtime prerequisites
docker-works doctor --config /etc/docker-works/config.yaml

# 2. Validate configuration file
docker-works validate --config /etc/docker-works/config.yaml

# 3. Enable and start the systemd service
sudo systemctl enable --now docker-works

# 4. Stream logs
journalctl -u docker-works -f

Running both Rootless Docker (dockerd-rootless) and docker-works as an unprivileged user ensures neither the containers nor the GitOps daemon hold host root privileges.

  1. Ensure Docker CE, docker-ce-rootless-extras, and uidmap (or shadow-utils on Fedora) are installed on the host.
  2. Run the installer as your non-root user:
curl -fsSL https://raw.githubusercontent.com/indikaimk/docker_works/main/scripts/install.sh | bash -s -- --rootless
  1. Enable lingering (so user services keep running after logout) and start the user service:
sudo loginctl enable-linger "$USER"
systemctl --user enable --now docker-works
journalctl --user -u docker-works -f

Privileged Ports (< 1024)

If your rootless containers bind ports 80 or 443, allow unprivileged port binding on the host: sudo sysctl -w net.ipv4.ip_unprivileged_port_start=0 (persist in /etc/sysctl.d/99-rootless.conf).

Running with Podman?

See the Podman Guide for both rootful (docker-works-podman.service) and rootless (docker-works-podman-user.service) systemd unit instructions.