A fancy, easy-to-use and reactive self-hosted docker compose.yaml stack-oriented manager.
🆕 What's new from upstream: darthrater78 2.3.x and 2.4.x (2.3.x included since this fork's v2.5.0, 2.4.0 since v2.12.0, 2.4.1 since v2.12.2, 2.4.2 since v2.12.3)
Built on Louis's original design, darthrater78/dockge 2.3.0 adds a redesigned phone layout, a resizable stack list on desktop, port conflicts you can't miss, and a Compose Drift Check that works everywhere. Full list in darthrater78's release notes. This fork's own additions are in the "This fork — Ext745/dockge" section below.
2.3.1 catches the port conflicts 2.3.0 could miss (ports set through .env variables, compose.override.yaml, port ranges) and checks your ports when you Save or Deploy a stack. Release notes
2.4.0 can run Dockge as a regular user: it fixes the ownership of its own folders, joins the docker.sock group and drops root by itself. It also creates your stacks' bind-mount folders before they start, so containers can write to them without a chown, and includes security fixes (stack paths are checked to stay inside the stacks folder, hardened REST query parameters). In this fork, dropping root is opt-in with DOCKGE_DROP_ROOT=true next to PUID/PGID: without it, PUID/PGID keep their earlier meaning and an existing install doesn't change user on an update. See Running as a regular user. Release notes
2.4.1 is a security update: the image runs Node.js 22.23.4, which fixes the October 2026 Node.js security release (a Brotli decoder remote-code-execution bug and TLS hostname-check bypasses), and the healthcheck is rebuilt with Go 1.27.3. Nothing else changes. Release notes
2.4.2 fixes dependency advisories and goes back to upstream's mount layout: the quickstart mounts only Dockge's data folder and the stacks folder, not all of /opt/docker. Installs made with the earlier quickstart can switch back without moving any data. Release notes
On a phone, Dockge is built around one job: find a stack → open it → edit it or act on it → watch what happens.
![]() Find |
![]() Open |
![]() Watch |
![]() Edit |
![]() More actions |
![]() Drift check |
- The stack list is the home screen. Search by stack name, agent or port; filter by status (Active / Exited / Inactive, with counts) or by Port conflicts. Each stack is one card: status, name and its host ports, conflicting ports first and in red.
- One section per agent. With more than one Dockge agent, stacks are grouped under a collapsible header per agent showing running / total counts. Sections start collapsed; searching or filtering opens them so matches are never hidden.
- Port conflict banner at the top of the list names each conflicting port and the stacks publishing it (tap a name to open that stack).
- Stack page: a top bar with back, name and status, and a ⋮ menu for the less common actions (Update, Compose Drift Check, Down, Delete). Three tabs:
- Overview: which agent the stack runs on, its URLs, and each container with its status, ports and Bash / Restart / Stop.
- Compose:
compose.yaml,.envandcompose.override.yamlwhen present. - Logs: the combined stack log, filling the screen (expandable to full screen).
- Bottom action bar, where your thumb is: Start or Restart, Stop, Update, Edit. While editing it becomes Deploy, Save and Discard. Any action switches to the Logs tab so you see its output live, and the tab shows a dot while it runs.
- Menu (☰) for Stacks, Overview, Compose Drift Check, Console, Settings, Scan Stacks Folder and Logout, so the bottom of the screen is free for the stack actions.
- Compose Drift Check is one tap away (the button beside the search box); on a phone its results are cards with the compose and running image and a Sync button.
Resizable stack list. Drag the handle between the stack list and the page to make the list wider or narrower (arrow keys work when the handle is focused; double-click resets it). The width is remembered. Port badges show as many ports as fit the current width, with the rest behind "+N", and a conflicting port is always shown first. When the list gets narrow, the Compose Drift Check button shrinks to its icon so the search box keeps its room.
Resizable terminals (since 2.2.0). Every terminal panel (stack logs, console, container shell) has a drag handle to make it taller and a button to expand it to full screen; Esc restores it. Each page remembers its own height.
Port conflicts at a glance. The banner above the stack list lists every host port that more than one running stack publishes, per agent, with links to the stacks involved.
Compose Drift Check (added in this fork in 1.7.0) finds services whose compose.yaml pins a different image tag than the container actually running, and Sync writes the running tag back into the compose file (comments preserved). In 2.3.0:
- "Scan All" no longer times out. It used to run
docker psplus twodocker inspectcalls per container, for every stack, so any host with more than a handful of containers hit the 30-second limit. A scan now makes three docker calls in total and finishes in a couple of seconds. - On phones it's one tap from the stack list (the button beside the search box, or ☰ → Compose Drift Check), and per stack from the ⋮ menu.
- Results fit the space. Each mismatch is a card (stack / service, compose image, running image, Sync) on phones and whenever the panel is too narrow for the table, so the Sync button is never scrolled out of view.
![]() Desktop: Scan All, then Sync |
![]() Phone: from the stack list |
Original Dockge intro video (Louis Lam, shows the 2023 UI): https://youtu.be/AWAlOQeNpgU?t=48
This is a fork of a fork. darthrater78/dockge — the base this repo builds on — had every line of its new code (from v1.5.2 through v2.4.0: REST API, Compose Drift Check, 2FA, port-conflict detection, CI hardening, the mobile redesign, and more) written by Claude Code under human direction, plus community PRs cherry-picked from louislam/dockge and its own fork collaborators. Full build history, the Dev Skills gate methodology, and contributor credits live in their README — not duplicated here to keep this one short.
This fork — Ext745/dockge
On top of that base, Claude Code ported the following features from hamphh/dockge 1.2, a separate community fork, then closed out every remaining gap between the two:
| What was ported/added | Detail |
|---|---|
| Agent Maintenance UI | Container/image/network/volume listing per Docker agent, prune/prune-all/remove, image pull, live terminal streaming of Docker CLI output, multi-agent endpoint switching |
| Ignore-service-status toggle | dockge.status.ignore=true compose label excludes a service from a stack's aggregate running/exited status, on both the REST API and the dashboard's live status badge |
| Fullscreen compose editor toggle | Expand the primary compose.yaml editor (not just the override editor) into a fullscreen modal, synced via the same v-model |
| Stack-terminal auto-collapse/auto-close | The Compose page's progress terminal now opens on action and auto-hides ~10s after completion, matching the Agent Maintenance terminal's behavior |
| Advanced category filter | Filter the stack list by agent and status from a dropdown |
| Delete-stack relocation | Moved into the kebab (⋮) submenu, matching the rest of the per-stack destructive actions |
| Node-to-node stack transfer | Zip a stack, send it to another connected agent, deploy it there, then remove it from the source — moves a stack between hosts from the kebab menu. Ported from NekoSuneProjectsForks/dockge, with its RBAC-dependent access checks (a role system this fork doesn't have) dropped down to this fork's actual checkLogin-only auth model. Hardened after live-testing against real multi-agent setups: rolls back cleanly on a failed deploy (no orphaned containers or folders left behind), warns before moving a stack that uses named Docker volumes (their data isn't part of the transfer), handles larger stacks (raised the socket message-size limit), and the export → import → delete sequence now runs entirely server-side so it finishes even if the browser tab that started it closes |
| Interactive progress terminal | The Compose/Agent Maintenance progress terminal now forwards keystrokes, so docker compose [y/N] prompts and Ctrl+C work instead of hanging forever. Also from NekoSuneProjectsForks/dockge |
| Auto-prune dangling images | Stack.update() now prunes dangling images after a successful pull+up, so old layers don't pile up on every update |
| Raw-keystroke host console | The Console page now sends every keystroke straight to the shell instead of editing a line locally and sending it on Enter, so bash's own tab completion, Up/Down history, cursor editing, Ctrl+C and full-screen programs work. Same shell and same access as before (the console is still off unless DOCKGE_ENABLE_CONSOLE=true). Adapted from Lorwell/dockge commit 7a36b47 |
| Update check that sees this fork | "Show update if available" used to ask louislam's dockge.kuma.pet/version (which reports the 1.x line), so a 2.x install never saw an update. It now reads this fork's GitHub Releases (stable, plus pre-releases when "Also check beta release" is on), and Settings → About's "Check Update On GitHub" opens the releases page instead of a link pinned to the running version |
| Delete works on a broken compose file | Deleting runs docker compose down, which refuses to run when compose.yaml is invalid, so a stack saved with a typo (or one whose Deploy failed on a bad file) could never be deleted from the UI. Delete now falls back to docker compose -p <project> down --remove-orphans from an empty folder, which removes the stack's containers and networks by project name without reading the file, then removes the folder. Same bug exists upstream |
| Compose check before Save/Deploy | The agent runs docker compose config on the edited, unsaved files (stack folder as project directory, same global.env/.env order as a deploy), so relative env_file:/bind paths and variables resolve as they will on deploy. An invalid file blocks Deploy and asks before Save; older agents that don't answer never block |
| Format / Format on save | Tidies compose.yaml and the override with the same yaml library Dockge already uses: tab indentation → spaces, 2-space indent, trailing whitespace and CRLF removed, long lines never folded, comments/quotes/flow lists/anchors kept. Refuses if the result would parse to different data. "Format on save" is off by default and remembered per browser |
| Form editors edit in place | The container/network/URL forms used to rebuild the whole compose file from parsed data, dropping quotes, turning inline lists into block lists and writing key: as key: null. Form edits are now diffed and applied to the parsed YAML document, so only the changed values move; a changed value keeps its quote style, new list items follow their neighbours, and the file's indentation width is kept |
| Import Stacks | Menu → Import Stacks, or Import next to an agent on Home. Lists compose projects Docker is running from outside the stacks folder, plus compose files found in a host folder you choose. Importing copies the compose file, override and .env into stacks/<same project name>/ (so <project>_ volumes/networks carry over), rewrites relative bind mounts, build contexts and secrets/config files to absolute paths into the original folder (no data moves), copies env_files (the compose CLI must read them), validates with docker compose config, and keeps a backup record (original files + docker inspect) in Dockge's data folder. Containers are left running unless "recreate from Dockge" is ticked. Roll back removes Dockge's copy; the original folder is never modified. Files Dockge can't see (it usually runs in a container) are read through a short-lived busybox helper container |
Import docker run containers |
Import Stacks → Single containers. The compose file is generated from docker inspect of the container and its exact image, keeping only settings that differ from the image (env, command, entrypoint, workdir, user, labels, healthcheck, stop signal) plus ports, restart policy, mounts, networks/network mode, DNS, extra hosts, devices, GPUs, capabilities, privileged, security options, sysctls, ulimits, tmpfs, resource limits and logging; anything unmapped is listed as a note. Existing named and anonymous volumes are reused as external, custom networks too. You review/edit the file and the stack name first. Import stops the original, renames it <name>-pre-dockge with restart no, then deploys; if that fails the original is restored automatically. Roll back removes the stack and restores the original's name, restart policy and running state; Keep removes the stopped original (its volumes stay) |
| Import Portainer stacks | Import Stacks → Portainer stacks: Portainer URL + access token (sent per request, never stored; optional acceptance of Portainer's self-signed certificate). Uses Portainer's API (/api/stacks, /api/stacks/{id}/file, /api/endpoints). Stack variables, which Portainer keeps in its database and only passes at deploy time, are written to .env. Relative paths are resolved against Portainer's project folder (/data/compose/<id>), which is where Docker actually bind-mounted them from, so no data moves; env_files are read from Portainer's data volume through the helper container. Swarm stacks, stacks on other Portainer environments and stacks Portainer is still deploying are refused with a reason; plain compose import refuses Portainer's projects and points here. Portainer keeps listing an imported stack: don't use its Stop/Delete on it afterwards |
| Prune protects stack images | Agent Maintenance's image Prune and System Prune with "all images", and the REST API's POST /api/system/prune, used docker … prune -a, which removes every image no container uses — including the images of stacks that only run on demand (e.g. profiles: ["manual"] + docker compose run --rm), which can be many GB to re-download. Docker's prune can't exclude by name, so Dockge now runs Docker's prune without -a (plus docker builder prune -a for the build cache), then removes unused images itself, skipping any whose repository appears in a stack's compose file or override (with .env/global.env applied; all tags of that repository, since stacks often pick the tag through a variable). The summary lists what was kept. Images used by any container, running or stopped, are never removed. Plain docker commands are unaffected |
| Prune protects stack volumes | Agent Maintenance's volume Prune with "all" used docker volume prune -a, which removes every unused named volume - including the data volumes of a stack that's merely "down". Dockge now runs Docker's plain prune (anonymous volumes only) and then removes unused volumes itself, keeping any a stack declares under the name Docker uses for it (<project>_<key>, with the project from a top-level name: or the folder; a custom name:; an external volume), with .env/global.env applied. The output lists what was kept. Plain Prune and System Prune's volume option only ever remove anonymous volumes on Docker 23+ and are unchanged |
| Image update available | Each node compares the image every service of its stacks uses with the image's registry (a HEAD request for the tag's manifest digest, checked against the RepoDigests Docker recorded on pull; no skopeo, and Docker Hub doesn't count HEAD requests against its pull limit). Stacks with a newer image get a cloud icon in the stack list (an "Updates" chip on phones and an "Update available" option in the filter); on the stack page the affected services are badged and Update is highlighted. Checks run a minute after startup and then every 6 hours (Settings → Image updates: on/off, 1 hour to 1 week, Check now, applied to every online node), and again for a stack after Save, Deploy or Update. Skipped, never flagged: build: services, images pinned by digest, not pulled yet, or not on a registry (private registries need docker login inside the Dockge container). The REST API's GET /api/stacks/:name/status returns imageUpdatesAvailable. |
| Running as a regular user is opt-in | darthrater78 2.4.0 makes PUID/PGID switch Dockge itself from root to that user. Here that needs DOCKGE_DROP_ROOT=true as well: before, PUID/PGID only set the owner of stack files, and an install that has them (with apps that write root-owned data into their stack folder) would otherwise change user on an image update, and lose the ability to delete or transfer those stacks. With the switch on, Delete and node-to-node Transfer finish the step PUID:PGID can't do (removing or reading root-owned app data) in a short-lived root helper container of Dockge's own image, with only that stack folder mounted, at the host path read from Dockge's own mounts. Upstream's server-side compose check on Save is left out: this fork's check (v2.6.0) already blocks Deploy and keeps "Save anyway" |
![]() Node-to-node transfer, with the named-volume warning |
![]() Agent Maintenance |
![]() Category filter |
Along the way, several pre-existing bugs in darthrater78's codebase were found and fixed by live-testing against real Docker daemons rather than trusting socket-protocol tests alone: two dangling-image detection bugs in Agent Maintenance, a missing Terminal.vue.clearTerminal() method that silently broke every progress-terminal call (Compose and Agent Maintenance pages), a broken $root.getAgentName() reference that prevented the Agent Maintenance page from mounting at all, a dead branch in the endpoint-display helper, and a login double-callback bug (three independent ifs instead of if/else-if meant a stray token on a normal login could reach the 2FA branch and fire callback() twice). Two more turned up after v2.5.0: the "Show update if available" check polled louislam's 1.x version endpoint, so it could never report a 2.x update (fixed in v2.5.1), and a stack whose compose.yaml was invalid could never be deleted, because Delete's docker compose down refuses to read a broken file (fixed in v2.5.2; the same bug is in darthrater78 and louislam). And in v2.6.0: opening a stack silently rebuilt its compose text from the parsed data, so any Save dropped quotes, turned inline lists into block lists, wrote key: as key: null and added networks: {} in edit mode, even if you changed nothing; the file is now saved as written. Edits made through the form editors did the same until v2.6.1, which applies them in place. v2.7.0 also fixes a louislam-era leftover: the toast after first-run setup showed the raw key successAdded. v2.8.0 stops the Import page from listing Dockge's own stack (it was already refused, but offering it at all was confusing). v2.9.0 makes plain compose import refuse stacks deployed by Portainer (it would have read the wrong file and lost their variables) and send you to the Portainer import instead. It also makes Dockge recognise its own container reliably: the check used the container's hostname, which isn't the container id when Dockge's compose file sets hostname: or uses network_mode: host, so Dockge could then offer to import itself, and the older "don't stop the stack that contains Dockge" protection could miss. It now reads the container id from /proc/self/mountinfo, with the hostname only as a fallback. v2.10.0 makes Dockge's "prune all images" options keep the images your stacks use, even when a stack has no container (see the table above). v2.10.1: those prunes printed Docker's multi-line "legacy builder is deprecated" notice, which read like an error; the build-cache step (which does work without buildx) now reports a single "Build cache: … reclaimed" line. Also in v2.10.1: Agent Maintenance's image list identified rows by image ID, but every tag is its own row and tags can share an ID (always so on Docker 29's containerd image store) - so ticking one tag ticked both, and Delete ran docker image rm <id>, which failed with "image is being used by running container" when a container used the other tag, while the list mis-rendered the rows. Tagged rows are now identified by name:tag, so Delete removes exactly that tag; untagged images still delete by ID. v2.10.2: an audit of the rest of Agent Maintenance (containers, networks, volumes - every button, on Docker 29) found one more: volume Prune with "all" deleted the data volume of a stack that was merely "down" (Docker counts a downed stack's volumes as unused); it now keeps volumes a stack declares. Containers and networks behaved correctly. v2.10.3: a stack's Update button pulled and recreated the containers but never opened the terminal, so none of the pull output was shown (every other stack action already opened it); it now streams like Start/Stop/Deploy. v2.11.0: pressing Escape or an arrow key in the stack list's filter menu or a stack's ⋮ menu threw an error (Cannot read properties of undefined (reading 'parentNode')) instead of closing it or moving through it: Bootstrap's own dropdown script, loaded for the profile menu, handles those keys for every dropdown menu on the page, and bootstrap-vue-next's menus have no button it recognises. Only Bootstrap's Modal is loaded now, and the profile menu opens without it. v2.11.1: after System Prune, Agent Maintenance's lists were never refreshed, so a removed image stayed listed and Delete on it failed with "No such image". The page reloads each tab through its template ref, but it had copied $refs once in setup() (Vue replaces that object when the first ref is set, so the copy stayed empty) and the tab component didn't expose its reload anyway. The lists now reload, and the prune summary names the images it removed. v2.12.1: in a container's bash terminal, paste did nothing (the terminal only forwarded keystrokes, so pasted text was dropped; Ctrl+V and right-click relied on navigator.clipboard, which doesn't exist over plain HTTP), and select-to-copy over HTTP stole the terminal's focus and failed while dragging. "Switch to sh" also did nothing: the bash and sh sessions shared one terminal name, so the page stayed attached to the running bash session. v2.12.2 fixes three bugs that dockge-mod (ethanpil/dockge-mod) found in its own code review and that this fork shared: a request for an agent that was offline or removed was only logged, never answered, so the page waited forever; the login limit (20 a minute) counted all clients together, so one client could lock out every login; and a port badge took its link protocol from whatever followed the / in the port, so 8080:80/javascript became a javascript: link (UDP ports, which never opened anything, are no longer links either). v2.12.4: every new progress-terminal command started at the default 105 columns, and the browser only reported its size when that size changed, so all but the first command of an action (and every later action on the same page) kept that width whatever the window size. Compose's lines could then wrap and its live progress could redraw on the wrong rows. The server now remembers each terminal's size and starts new commands at it. v2.12.5: in some browsers (depending on zoom, display scaling and font metrics) the progress terminal's box measured a fraction of a pixel shorter than its rows, so each fit dropped a row and triggered the next, down to 1-3 rows. With 2.12.4's remembered size, Compose then also drew its pull progress in that many rows. The progress terminal now fits only its width and keeps its 8 rows, and the server never starts a progress command below 8 rows. The Pull dialog also built its image list as raw HTML, so an untagged image's <none> could be read as a tag and render blank; names are now plain text. v2.12.6: converting a docker run command to compose kept quotes that appear inside an argument as part of the value, so --sysctl net.ipv4.ping_group_range="0 2147483647" became the sysctl value "0 2147483647" (quotes included) and the stack failed to start with failed to write sysctl ... invalid argument. --label, --log-opt, --add-host, --ulimit and --tmpfs had the same bug. The command is now split the way a shell splits it before conversion. See PORTING.md in this repo for the full write-up of the porting work, live-test methodology, and the bugs found.
What changed in each release of this fork: Version History.
Explicitly not ported: hamphh's skopeo-based image-update checker (darthrater78 removed theirs in v1.8.0; this fork has its own registry-based check since v2.11.0, see above) and hamphh's dedicated mobile UI (darthrater78 has since shipped its own full mobile redesign in 2.3.0, which this fork now includes). NekoSuneProjectsForks/dockge's container file browser (feature doesn't exist in this fork) and its own node/agent filter (redundant with the category filter above) were skipped for the same reason — nothing to port against, or already covered.
This fork is kept in sync with darthrater78/dockge via regular merges — last synced through v2.4.2 (dependency fixes and a quickstart that mounts only the data and stacks folders, shipped as this fork's v2.12.3). Before that, v2.4.1 (the Node.js 22.23.4 / Go 1.27.3 security update, shipped as this fork's v2.12.2). Before that, v2.4.0 (shipped as this fork's v2.12.0: running as a regular user with PUID/PGID, opt-in here via DOCKGE_DROP_ROOT=true; bind-mount folders created before a stack starts; stack paths checked to stay inside the stacks folder; ESLint 10; CodeQL scanning). Before that, v2.3.1 (expandable terminal panels, security audit fixes, mobile redesign, resizable desktop stack list, fast Compose Drift Check scan, port-conflict detection from ${VAR}/override files/ranges with a check on save/deploy), shipped as this fork's v2.5.0. This fork's own additions carry over into the new layout: the interactive progress terminal and Download Log button sit in the new mobile Logs tab and alongside the resizable/expandable terminal panel, and the desktop category filter coexists with upstream's port-conflict banner. Re-verified end-to-end after the merge (deploy, port-conflict dialog, download log, node-to-node transfer between two separate Docker daemons, mobile Logs tab via an agent).
- 🧑💼 Manage your
compose.yamlfiles- Create/Edit/Start/Stop/Restart/Update/Delete
- ⌨️ Interactive Editor for
compose.yaml - 🦦 Interactive Web Terminal
- 🏪 Convert
docker run ...commands intocompose.yaml - 📙 File based structure - Dockge won't kidnap your compose files, they are stored on your drive as usual. You can interact with them using normal
docker composecommands - 🕷️ (1.4.0 🆕) Multiple agents support - You can manage multiple stacks from different Docker hosts in one single interface
- 1.5.1 🆕
- 🧩 Compose override editor - Edit
compose.override.yamlalongside your main compose file, when present - 🔐 Optional Cloudflare Turnstile CAPTCHA on login
- 🧩 Compose override editor - Edit
- 🌐 (1.6.0 🆕) REST API for external automation (CI/CD, scripts, monitoring)
- 🔄 (1.7.0 🆕) Compose Drift Check — detect and fix image tag drift between running containers and compose files (2.3.0: fast "Scan All", works on phones — details)
- 🔑 (1.9.0 🆕) Two-Factor Authentication (TOTP) — protect your account with app-based 2FA
- 2.3.0 🆕
- 📱 Mobile-first phone layout — find a stack, edit it, act on it and watch its logs, all within thumb reach (details)
↔️ Resizable stack list on desktop, with port badges that fill whatever width you give it (details)- 🚦 Port conflict banner — every host port published by more than one running stack, and which stacks they are
- 🛑 (2.3.1 🆕) Port check on Save and Deploy — warns when a host port is already used by another stack (running or not) or a running container, including ports set through
.envvariables,compose.override.yamland port ranges - Ext745/dockge 2.2.0 🆕
- 🐳 Agent Maintenance UI — manage containers, images, networks, and volumes per agent, with live terminal output
- 🙈 Ignore-service-status toggle — exclude specific services from a stack's aggregate status badge
- ⛶ Fullscreen toggle for the compose.yaml editor
- 🏷️ Advanced stack-list filtering by agent and status
- 🔀 (Ext745/dockge 2.3.0 🆕) Node-to-node stack transfer — move a stack to another connected agent from the kebab menu
- Ext745/dockge 2.4.0 🆕
- 💾 Download Log — save a stack's terminal output to a local file
- 📋 Copy-all button on every terminal — one click to copy its full output to the clipboard, with a fallback for HTTP-only instances where the browser's Clipboard API isn't available
- ⌨️ (Ext745/dockge 2.5.0 🆕) Raw-keystroke console — tab completion, command history and Ctrl+C work in the host Console like a real terminal
- 🔔 (Ext745/dockge 2.5.1 🆕) Update check that works — "Show update if available" now checks this fork's GitHub Releases (it used to ask louislam's 1.x endpoint and never fired), and Settings → About opens the releases page
- 🗑️ (Ext745/dockge 2.5.2 🆕) Delete works on a broken compose file — a stack saved with an invalid
compose.yaml(or whose Deploy failed on one) can be deleted again, and its containers are removed too - Ext745/dockge 2.6.0 🆕
- ✅ Compose check before Save and Deploy —
docker compose configreads the edited file first; a mistake likeimagee:blocks Deploy and asks before Save, with compose's own error message - 🪄 Format button and "Format on save" — tabs become spaces, 2-space indentation, trailing spaces removed; comments, quotes and inline lists are kept, and it only applies if the file still means exactly the same
- ✅ Compose check before Save and Deploy —
- 🧩 (Ext745/dockge 2.6.1 🆕) Form editors keep your formatting — changing an image, port, URL, network or container through the forms now edits just that part of compose.yaml; quotes, inline lists, comments,
key:and indentation elsewhere stay as you wrote them - 📥 (Ext745/dockge 2.7.0 🆕) Import Stacks — bring compose stacks Dockge doesn't manage (already running, or found by scanning a host folder) under Dockge in a few clicks; volumes and networks carry over, data stays where it is, the original folder is never touched, and every import can be rolled back
- 🐳 (Ext745/dockge 2.8.0 🆕) Import
docker runcontainers — Dockge writes a compose file from the running container (only what you set, not the image's defaults; volumes reused so no data is lost) for you to review and edit, then swaps the container for a stack; the original is kept stopped until you choose Keep, and Roll back puts it back - 🧭 (Ext745/dockge 2.9.0 🆕) Import Portainer stacks — connect with a Portainer access token (never saved) and import its compose stacks, stack variables included; data stays exactly where Portainer's deploy put it, with the same backup and roll back
- 🛡️ (Ext745/dockge 2.10.0 🆕) "Prune all images" keeps images your stacks use — an on-demand stack (like a build toolchain run with
docker compose run) has no container between runs, so Docker treats its image as unused; Dockge's prune-all options now keep every tag of any image repository a stack's compose file names, and say which ones they kept - Ext745/dockge 2.10.1 🆕
- 🧹 Clean prune output — "all images" prunes no longer show Docker's legacy-builder deprecation notice (Dockge's image has no buildx); the build cache step prints one line with what it reclaimed
- 🏷️ Image Delete removes just the tag you picked — two tags of the same image no longer tick together, and deleting an unused tag no longer fails with "image is being used by running container" when another tag of it is in use
- 💾 (Ext745/dockge 2.10.2 🆕) "Prune all" volumes keeps your stacks' data — a stack that's "down" has no containers, so Docker counts its volumes (e.g. a database) as unused; Agent Maintenance's volume Prune with "all" now keeps every volume a stack's compose file declares
- 📜 (Ext745/dockge 2.10.3 🆕) Update shows its output — the stack's Update button opens the terminal and streams the pull/recreate output, like Start/Stop/Deploy
- Ext745/dockge 2.11.0 🆕
- ☁️ Update available — stacks whose images have a newer version on their registry get a cloud icon in the stack list, a filter option and an "Updates" chip on phones; the stack page badges the services and highlights Update. Checked every 6 hours on every node (Settings → Image updates)
- ⌨️ Keyboard works in the stack list's filter menu and a stack's ⋮ menu — Escape closes them and the arrow keys move through them, instead of throwing an error
- 🔄 (Ext745/dockge 2.11.1 🆕) System Prune refreshes Agent Maintenance's lists — removed images, containers, networks and volumes disappear right away instead of staying listed until a page reload; the summary names the images it removed
- Ext745/dockge 2.12.0 🆕
- 👤 (from darthrater78 2.4.0) Run Dockge as a regular user —
PUID/PGIDwithDOCKGE_DROP_ROOT=true: Dockge fixes the ownership of its own folders, joins the docker.sock group and drops root; existing installs keep running as root until they opt in (details) - 📁 (from darthrater78 2.4.0) Bind-mount folders created before a stack starts — owned by
PUID:PGID(or root), so containers can write to them without achown - 🧰 Delete and Transfer work on root-owned app data when Dockge runs as a regular user — the step it can't do itself runs in a short-lived root helper container
- 👤 (from darthrater78 2.4.0) Run Dockge as a regular user —
- Ext745/dockge 2.12.1 🆕
- ✂️ Terminal copy/paste that works over plain HTTP — select to copy, Ctrl+C with a selection or Ctrl+Shift+C to copy, Ctrl+V / Ctrl+Shift+V to paste, and the browser's right-click Copy/Paste
- 🐚 "Switch to sh" opens a real sh session — it used to stay attached to the running bash one
- Ext745/dockge 2.12.2 🆕
- 📴 Actions on an offline agent fail with an error right away instead of spinning forever
- 🔐 Login rate limit per client address (10 a minute) before the overall one (30 a minute), so one client can no longer lock everyone out
- 🔗 Port badges only link to
http/httpsURLs, neverjavascript:from a crafted compose port
- 📦 (2.4.2 / Ext745/dockge 2.12.3 🆕) Quickstart mounts only Dockge's data and stacks folders, as upstream — Dockge no longer sees your apps' data;
narrow-bind-root.shswitches an older install back - Ext745/dockge 2.12.4 🆕
- 📐 Progress terminal keeps its width — every command in an action, like Update's pull and then up, runs at the size of your terminal, so
docker composeoutput no longer wraps or redraws in the wrong place - 🏷️ Pull dialog lists image names as plain text — an untagged image's
<none>shows up instead of rendering blank
- 📐 Progress terminal keeps its width — every command in an action, like Update's pull and then up, runs at the size of your terminal, so
- 📏 (Ext745/dockge 2.12.5 🆕) Progress terminal always keeps its 8 rows — in some browsers it shrank to 1-3 rows during an action, and Compose's live output with it
- 🔁 (Ext745/dockge 2.12.6 🆕)
docker run→ compose conversion handles quotes inside arguments —--sysctl key="0 1",--label a="b c"and the like no longer end up with literal quotes that stop the stack from starting
- 🚄 Reactive - Everything is just responsive. Progress (Pull/Up/Down) and terminal output are in real-time
- 🐣 Easy-to-use & fancy UI - If you love Uptime Kuma's UI/UX, you will love this one too
Requirements:
- Docker 20+ / Podman
- (Podman only) podman-docker (Debian:
apt install podman-docker) - OS:
- Major Linux distros that can run Docker/Podman such as:
- ✅ Ubuntu
- ✅ Debian (Bullseye or newer)
- ✅ Raspbian (Bullseye or newer)
- ✅ CentOS
- ✅ Fedora
- ✅ ArchLinux
- ❌ Debian/Raspbian Buster or lower is not supported
- ❌ Windows (Will be supported later)
- Major Linux distros that can run Docker/Podman such as:
- Arch: armv7, arm64, amd64 (a.k.a x86_64)
- Compose file and Dockge's data:
/opt/docker/dockge - Stacks directory:
/opt/docker/stacks - Port: 5001
# Create the folders (needs root under /opt), make Dockge's folder yours, and go there
sudo mkdir -p /opt/docker/dockge/data /opt/docker/stacks \
&& sudo chown "$USER": /opt/docker/dockge && cd /opt/docker/dockge
# Download the compose file (saved as compose.yaml)
curl https://raw.githubusercontent.com/Ext745/dockge/master/compose.yaml --output compose.yaml
# Start Dockge
docker compose up -dThe compose file sets PUID/PGID to 1000 with DOCKGE_DROP_ROOT=true, so Dockge runs as user 1000:1000 (see Running as a regular user). It creates data/ itself. It sees only its own data folder and /opt/docker/stacks, like upstream Dockge, not your apps' data. Bind-mount folders outside the stacks folder (such as /opt/docker/<app>) are created by Docker, owned by root, as upstream; if an app runs as a regular user, create its folder first (mkdir -p, then chown).
Already running Dockge from another folder (such as /opt/dockge from older instructions)? Nothing needs to move; these paths are just the recommended layout for new installs.
To use a different stacks directory or port, generate a compose file with the interactive generator or its URL, and save it in /opt/docker/dockge:
curl "https://dockge.kuma.pet/compose.yaml?port=5001&stacksPath=/opt/docker/stacks" --output compose.yamlThen set its image: to ghcr.io/ext745/dockge:2.12.6 (the generator uses the upstream image). To run Dockge as a regular user, add under environment: (see Running as a regular user; without DOCKGE_DROP_ROOT, Dockge stays root and PUID/PGID only set the owner of the files it writes):
- PUID=1000
- PGID=1000
- DOCKGE_DROP_ROOT=trueSave this as /opt/docker/dockge/compose.yaml (create the folders first: sudo mkdir -p /opt/docker/dockge /opt/docker/stacks && sudo chown "$USER": /opt/docker/dockge /opt/docker/stacks), then run docker compose up -d in that folder:
services:
dockge:
image: ghcr.io/ext745/dockge:2.12.6
restart: unless-stopped
ports:
- 5001:5001
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /opt/docker/dockge/data:/app/data
- /opt/docker/stacks:/opt/docker/stacks
environment:
- PUID=1000
- PGID=1000
- DOCKGE_DROP_ROOT=true
- DOCKGE_STACKS_DIR=/opt/docker/stacks
read_only: true
tmpfs:
- /tmp
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
cap_add:
- CHOWN
- DAC_OVERRIDE
- FOWNER
- SETUID
- SETGID
# ports: 5001 is Dockge's web UI (host:container).
# To listen on one address only: 192.168.1.10:5001:5001
# /var/run/docker.sock: lets Dockge run docker compose for your stacks
# (root-equivalent access to Docker).
# /opt/docker/dockge/data: Dockge's database and settings (login, agents,
# API keys, registry logins). Back this folder up.
# /opt/docker/stacks: your stacks. Both sides MUST be the same full path.
# Dockge sees only this folder, not your apps' data elsewhere.
# PUID/PGID + DOCKGE_DROP_ROOT=true: the user Dockge runs as. It starts as root
# only to take ownership of its own folders and join the docker.sock group,
# then switches to this user. Without DOCKGE_DROP_ROOT, Dockge stays root and
# PUID/PGID only set the owner of the files it writes (as before 2.12.0).
# DOCKGE_STACKS_DIR: where Dockge looks for stacks. Missing ./relative
# bind-mount folders inside a stack are created, owned by PUID/PGID.
# read_only/tmpfs: the image can't be changed at runtime; scratch files go
# to /tmp in memory.
# security_opt/cap_drop/cap_add: no privilege escalation, and only the
# capabilities the start-up step needs; Dockge itself runs with none.
# Optional, under environment:
# - TURNSTILE_SITE_KEY=... and - TURNSTILE_SECRET_KEY=...: CAPTCHA on login
# - DOCKGE_ALLOW_FRAMING=true: allow embedding in a dashboard iframe
# Bind-mount folders outside the stacks folder (such as /opt/docker/<app>) are
# created by Docker, owned by root, as upstream. If the app runs as a regular
# user, create its folder first (mkdir -p, then chown).
# Installed with an older quickstart (it mounted /opt/docker:/opt/docker)?
# See "Installed with an older quickstart?" in the README.With PUID, PGID and DOCKGE_DROP_ROOT=true set (the quickstart uses 1000), Dockge starts as root for a moment, then:
- takes ownership of its own folders:
data/, the stacks folder, each stack's folder and itscompose.yaml/compose.override.yaml/.env. Your apps' data is never touched; - joins the group that owns
/var/run/docker.sock, whatever its number is on your host; - switches to
PUID:PGIDwith no Linux capabilities, and runs from there.
No chown, no getent group docker, no group_add. Before every Deploy, Start, Restart or Update, Dockge also creates the stack's missing bind-mount folders, owned by PUID:PGID with Docker's usual 0755, so containers that run as 1000 can write to them. Without this, Docker creates them as root and you chown them by hand. It covers:
./relativefolders inside the stack,- paths that use
${VARIABLES}from the stack's.envorglobal.env.
It skips ~ paths, variables that aren't set, anything outside the stacks folder (such as /opt/docker/<app>), and paths that go through a symlink; Docker handles those as before. .env and global.env are saved readable by their owner only (0600).
| Your compose file | What happens |
|---|---|
No PUID/PGID, no user: |
Runs as root, exactly as before |
PUID/PGID set, no DOCKGE_DROP_ROOT (installs before 2.12.0) |
Runs as root, as before: the stack files and bind-mount folders it creates are owned by PUID:PGID |
PUID/PGID and DOCKGE_DROP_ROOT=true |
Starts as root, fixes ownership, switches to PUID:PGID (above) |
user: "1000:989" (with or without group_add) |
Kept as is: Dockge runs as that user from the start and can't change ownership. Bind-mount folders are still created, owned by that user |
Root-owned app data: containers often write files as root into their stack folder (a ./data folder with a 0700 subfolder, say), which PUID:PGID can't read or remove. When a stack's Delete or a node-to-node Transfer hits such a file, Dockge does that one step as root in a short-lived helper container of its own image (--network none, only that stack folder mounted, removed when done), through the docker.sock it already uses. The folder's host path is read from Dockge's own mounts.
Already running Dockge? See Upgrading to 2.12.0: what changes if you only update the image, and how to move to this setup.
Hardening in the quickstart: a read-only container filesystem (scratch files go to an in-memory /tmp), no-new-privileges, and every capability dropped except the five the start-up step needs (CHOWN, DAC_OVERRIDE, FOWNER, SETUID, SETGID). Dockge itself runs with none.
What it doesn't change: access to docker.sock is root-equivalent on the host, whoever holds it. Running as a regular user keeps files out of root's hands, and keeps the web console from being a root shell, but it is not a sandbox. Keep Dockge off the internet: bind the port to a LAN address (192.168.1.10:5001:5001) or put it behind a VPN or a TLS reverse proxy, turn on 2FA, and leave the console off unless you need it.
Private registries: with DOCKGE_DROP_ROOT=true, logins are kept in data/docker-config (root can't share its /root/.docker with the new user). A /root/.docker mount from older instructions is copied there once on the first start.
The quickstarts of Ext745/dockge 2.12.0 to 2.12.2 (darthrater78 2.4.0 and 2.4.1) mounted all of /opt/docker into Dockge and set DOCKGE_BIND_ROOTS=/opt/docker, so Dockge could create your apps' bind folders. That also let Dockge read and write every app's data, which it doesn't need. The quickstart now mounts only Dockge's data folder and the stacks folder, like upstream. Your old setup keeps working; to switch it back, run this on the Docker host:
curl -fsSL https://raw.githubusercontent.com/Ext745/dockge/master/extra/narrow-bind-root.sh -o narrow-bind-root.sh
less narrow-bind-root.sh # read it first: it changes nothing until you answer y
bash narrow-bind-root.shIt changes two lines of Dockge's compose.yaml (the /opt/docker volume becomes the stacks folder, DOCKGE_BIND_ROOTS is removed) and the quickstart comments that described them, then shows a diff and waits for y. Nothing moves: your stacks and app data stay where they are. Before asking, it checks that no stack reads files Dockge would no longer see (env_file, configs, build folders outside the stacks folder), and lists any. It backs up the compose file to ~/dockge-backup-<date>, restarts only Dockge, and prints an undo command. If Dockge took ownership of /opt/docker, it stays that way; sudo chown root:root /opt/docker gives it back to root if you want. DOCKGE_BIND_ROOTS still works if you set it yourself.
The one-line update changes only the image tag. What Dockge does then depends on what your compose file already has:
| Your compose file today | After updating only the image |
|---|---|
No PUID/PGID, no user: (most installs) |
Runs as root, exactly as before. You will notice two things: missing ./ bind-mount folders are created before a stack starts (as root, as Docker did); .env and global.env become readable by their owner only (0600) the next time they are saved. If root owns them, read them on the host with sudo |
PUID/PGID set (they set the owner of stack files while Dockge runs as root) |
Unchanged: still runs as root, and PUID/PGID still set the owner of the files it writes, now also of the bind-mount folders it creates. To run as that user instead, add DOCKGE_DROP_ROOT=true (below) |
user: "<uid>:<gid>" (the old non-root workaround) |
Unchanged: runs as that user. Bind-mount folders inside the stacks folder are now created as that user. If PUID/PGID are also set and differ, a warning appears after login |
In every case your login, settings and stacks are kept, and your stacks keep running while Dockge restarts. What an image update does not add: the read-only filesystem, no-new-privileges and the dropped capabilities. Those come from the compose file, below. Your stacks and app data stay where they are; nothing has to move.
With the migration script (any install started with docker compose). Run it on the Docker host, as your normal user:
curl -fsSL https://raw.githubusercontent.com/Ext745/dockge/master/extra/migrate-to-puid.sh -o migrate-to-puid.sh
less migrate-to-puid.sh # read it first: it is short and changes nothing until you answer y
bash migrate-to-puid.shIt reads your running Dockge (compose file, port and IP, data and stacks folders, other settings such as TZ or Turnstile keys), then asks for PUID/PGID (your ids by default) and adds DOCKGE_DROP_ROOT=true. Your stacks mount stays as it is. It then shows the new compose.yaml and a diff, and waits for y. Then it backs up the old file and the data folder to ~/dockge-backup-<date>, switches, waits until Dockge answers, and prints the address and a ready-made undo command. It refuses, without changing anything, when the compose file has something it would lose: other services, custom networks, env_file, ${VARIABLE} substitution or unknown settings. Use the steps below for those. The one-line update keeps working afterwards.
By hand:
- Back up. In the folder with Dockge's
compose.yaml:docker compose stop dockge, then copycompose.yamland Dockge's data folder (the one mounted at/app/data) somewhere safe. - Edit
compose.yaml, keeping your own port and data folder:- remove
user:andgroup_add:if you have them; - add
PUIDandPGIDwith your own ids (id -u,id -g), andDOCKGE_DROP_ROOT=true. Use your own group, not the docker group: that one is found automatically; - keep your stacks mount and
DOCKGE_STACKS_DIRas they are; - add
read_only,tmpfs,security_opt,cap_dropandcap_addfrom the quickstart compose file; - set the image tag to the new version.
- remove
- Start it:
docker compose up -d.docker compose logs dockge | grep entrypointshould showrunning as uid … gid … (groups …). - To go back, restore the saved
compose.yamland rundocker compose up -d. The data folder doesn't need restoring: the files stay usable by the old setup.
Example: from user: "1000:989" (the old non-root workaround) to PUID/PGID
A common older setup keeps the compose file and Dockge's data in the same folder:
user: "1000:989" # remove: Dockge switches user itself now
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /opt/docker/dockge:/app/data
- /opt/docker/stacks:/opt/docker/stacksChange it to this. The data folder stays where it is, so nothing has to move:
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /opt/docker/dockge:/app/data
- /opt/docker/stacks:/opt/docker/stacks
environment:
- PUID=1000 # your `id -u`
- PGID=1000 # your `id -g` (not the docker group: that one is found automatically)
- DOCKGE_DROP_ROOT=true # switch to PUID/PGID after start-up
- DOCKGE_STACKS_DIR=/opt/docker/stacks
read_only: true
tmpfs:
- /tmp
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
cap_add: [ CHOWN, DAC_OVERRIDE, FOWNER, SETUID, SETGID ]Back up first (docker compose stop dockge, then copy compose.yaml and the data folder), then docker compose up -d. The log shows [entrypoint] running as uid 1000 gid 1000 (groups 1000,989). Your stacks keep running while only Dockge restarts. To go back, restore the old compose.yaml and docker compose up -d again: the files stay usable by the old setup, so the data doesn't need restoring.
The compose file pins a release (ghcr.io/ext745/dockge:2.12.6) so an update never happens by surprise.
Dockge can't update itself (restarting its own container would cut the update off halfway), so run this on the Docker host. Set V to the latest release:
V=2.12.6; F=/opt/docker/dockge/compose.yaml
S=; docker ps >/dev/null 2>&1 || S=sudo; $S docker pull ghcr.io/ext745/dockge:$V \
&& $S sed -i.bak -E "s#(ghcr\.io/[^/]+/dockge:)[^[:space:]]+#\1$V#" "$F" \
&& $S docker compose -f "$F" up -d dockge && $S docker compose -f "$F" ps dockge \
&& echo "✅ Dockge updated to $V" || echo "❌ Update stopped: see the error above"- Pulls the new image first. If that version doesn't exist, it stops before anything changes.
- Changes only the image tag in your compose file, keeping the original as
compose.yaml.bak. Ports, volumes and environment are untouched. - Recreates the Dockge container on the new image and shows its status. Your stacks keep running; only Dockge restarts.
It changes nothing else: see If you only change the image tag for what that means for your setup, and how to move to the recommended one. It works from any folder, and uses sudo automatically if your user isn't allowed to run docker directly. Roll back with mv /opt/docker/dockge/compose.yaml.bak /opt/docker/dockge/compose.yaml and the same docker compose -f … up -d dockge.
Compose file somewhere else? Ask Docker where it was started from, and use that path as F:
sudo docker ps -a \
--format '{{.Names}} → {{.Label "com.docker.compose.project.config_files"}}' \
| grep -i dockgePrefer not to pin? Use ghcr.io/ext745/dockge:latest in your compose file, then update with:
cd /opt/docker/dockge && docker compose pull && docker compose up -dTo require a CAPTCHA challenge on the login page, set both of the following environment variables on the Dockge container. If either is unset, CAPTCHA verification is skipped.
- TURNSTILE_SITE_KEY=<your Turnstile site key>
- TURNSTILE_SECRET_KEY=<your Turnstile secret key>
Keys can be created in the Cloudflare dashboard.
By default Dockge refuses to be shown inside an iframe on another site (X-Frame-Options: SAMEORIGIN, frame-ancestors 'self'), because a page that frames it could trick you into clicking Docker actions. If you embed Dockge in a dashboard such as Home Assistant or Organizr, set:
- DOCKGE_ALLOW_FRAMING=true
Only do this if Dockge is not reachable from untrusted networks.
darthrater78/ha-dockge is a custom Home Assistant integration that adds your Dockge stacks and containers to Home Assistant so you can watch and control them from there:
- A sensor for each container showing its state (running, exited, etc.), image and health
- Start, Stop, Restart and Down buttons for each stack
dockge.start_stack,dockge.stop_stack,dockge.restart_stackanddockge.system_pruneservices for automations- Support for multiple Dockge agents, each shown as its own device
This fork is required. The integration talks to Dockge through the REST API, which the original Dockge does not have.
The integration is not in the default HACS store. Add it to HACS as a custom repository:
- In Dockge, set an API key (
DOCKGE_API_KEY, see Authentication). - In HACS, open the menu (three dots, top right) and choose Custom repositories. Add
https://github.com/darthrater78/ha-dockgewith category Integration. - Download Dockge in HACS and restart Home Assistant.
- Go to Settings > Devices & Services > Add Integration, search for Dockge, and enter your Dockge URL (for example
http://192.168.1.100:5001) and the API key.
Use an https:// URL where you can: the API key is sent with every request. For a dashboard card, see Dockge Card.
The API framework is ported from finder39/dockge ("Dockge Managed"), which wrote the original API router, auto-update scheduler and update history; it was adapted to this fork's architecture in v1.6.0.
Dockge v1.6.0 introduces a REST API for managing stacks programmatically. The API runs on the master node only — agents do not need any changes and continue to communicate via Socket.IO.
All API endpoints require a static API key passed in the X-API-Key header.
Set your API key via environment variable:
- DOCKGE_API_KEY=your-secret-api-key-here
Or set it at runtime through the UI/socket settings. The key is stored as a SHA-256 hash.
| Method | Path | Description |
|---|---|---|
GET |
/api/stacks |
List all stacks (local and remote agents) |
GET |
/api/stacks/:name |
Get details for a single stack |
POST |
/api/stacks/:name/start |
Start a stack |
POST |
/api/stacks/:name/stop |
Stop a stack |
POST |
/api/stacks/:name/restart |
Restart a stack |
POST |
/api/stacks/:name/update |
Pull images and restart a stack |
POST |
/api/stacks/:name/down |
Tear down a stack |
GET |
/api/version-sync/scan |
Scan for image tag mismatches between compose files and running containers |
POST |
/api/version-sync/sync |
Sync a specific service's compose image to the running version |
POST |
/api/version-sync/sync-all |
Sync all mismatched services for a stack |
GET |
/api/version-sync/history |
Query version sync history with pagination |
POST |
/api/version-sync/revert |
Revert a previous version sync |
GET /api/stacks and GET /api/stacks/:name accept:
?endpoint=hostname:port— target a specific remote agent
GET /api/version-sync/scan accepts:
?stackName=mystack— scan a specific stack (omit to scan all)?endpoint=hostname:port— target a specific remote agent
POST /api/version-sync/sync accepts JSON body:
stackName(string, required) — stack to syncservice(string, required) — service name within the stacknewImage(string, required) — image tag to write into the compose file
POST /api/version-sync/sync-all accepts JSON body:
stackName(string, required) — stack to sync all mismatches for
GET /api/version-sync/history accepts:
?page=1&limit=20— pagination?stackName=mystack— filter by stack name?service=myservice— filter by service name
POST /api/version-sync/revert accepts JSON body:
stackName(string, required) — stack containing the service to revertservice(string, required) — service to revert to its previous image
# List all stacks
curl -H "X-API-Key: your-key" http://localhost:5001/api/stacks
# Scan all stacks for compose/running image mismatches
curl -H "X-API-Key: your-key" http://localhost:5001/api/version-sync/scan
# Scan a specific stack
curl -H "X-API-Key: your-key" "http://localhost:5001/api/version-sync/scan?stackName=myapp"
# Sync a service to its running image
curl -X POST -H "X-API-Key: your-key" -H "Content-Type: application/json" \
-d '{"stackName":"myapp","service":"web","newImage":"nginx:1.27"}' \
http://localhost:5001/api/version-sync/sync
# Revert a previous sync
curl -X POST -H "X-API-Key: your-key" -H "Content-Type: application/json" \
-d '{"stackName":"myapp","service":"web"}' \
http://localhost:5001/api/version-sync/revertThe API communicates with remote agents via Socket.IO. Agents running pre-1.6.0 versions are supported with graceful degradation:
- Stack listing falls back to legacy call signatures
- Unsupported agents are listed in the response so you know which nodes need upgrading
Compose Drift Check requires v1.7.0 on all instances. The master Dockge and every agent must run v1.7.0 or later for Compose Drift Check to work. The scan and sync commands are registered as new socket events (scanVersionSync, syncVersion, syncAllVersions, revertVersionSync) — agents running older versions will not respond to these events. The global scan on the Home page (on phones: ☰ → Compose Drift Check, or the button beside the stack search) only contacts agents that are online; offline or pre-1.7.0 agents are skipped with a warning.
Save/Deploy port check (v2.3.1): a web UI check (the REST API deploys without it). It runs on the agent that owns the stack (new socket event checkPortConflicts). An agent older than 2.3.1 does not answer it, so the save goes ahead after 5 seconds without a warning.
Agent credential encryption (v1.9.0): Agent passwords are now encrypted at rest using AES-256-GCM. A one-time migration encrypts existing plaintext passwords on first startup. Remote agents do not need updating — the wire protocol is unchanged. However, rolling back the primary to a pre-1.9.0 version after migration will break agent authentication; back up the SQLite database before upgrading.
This fork's releases (full notes on each GitHub Release):
| Version | Date | What changed |
|---|---|---|
| v2.12.6 | 2026-11-15 | Fix: converting a docker run command kept quotes inside arguments like --sysctl key="0 1", so the stack failed to start (failed to write sysctl ... invalid argument); labels, log options, extra hosts, ulimits and tmpfs had the same bug. Security: vue-i18n 11 (from 10, out of support), fixing its two remaining advisories, so npm audit is clean |
| v2.12.5 | 2026-11-08 | Fix: the progress terminal could shrink to 1-3 rows in some browsers, and since 2.12.4 Compose's live output then ran at that height too; it now always keeps its 8 rows |
| v2.12.4 | 2026-11-06 | Fix: the progress terminal keeps its width across every command of an action, so Update's output no longer wraps or redraws in the wrong place; the Pull dialog shows image names as plain text, so an untagged image's <none> no longer renders blank |
| v2.12.3 | 2026-10-31 | Synced with darthrater78 v2.4.2: the quickstart mounts only Dockge's data and stacks folders, as upstream (no more /opt/docker:/opt/docker + DOCKGE_BIND_ROOTS); new extra/narrow-bind-root.sh switches an existing install back without moving data. Dependency fixes: follow-redirects and joi (High), qs, glob/minimatch overrides (Moderate). CI runs shellcheck |
| v2.12.2 | 2026-10-25 | Synced with darthrater78 v2.4.1 (Node.js 22.23.4 and Go 1.27.3 security update). Fixes (found by dockge-mod's code review): actions on an offline agent fail right away instead of spinning forever; login limit per client address, so one client can't lock everyone out; port badges never become javascript: links. npm audit fixes (body-parser, qs, fast-uri, ip-address) |
| v2.12.1 | 2026-10-18 | Fix: paste works in container terminals (Ctrl+V, Ctrl+Shift+V, right-click), including over plain HTTP; select-to-copy no longer fails or takes focus away over HTTP; Ctrl+C copies when text is selected; "Switch to sh" really switches to sh |
| v2.12.0 | 2026-10-11 | Synced with darthrater78 v2.4.0: run as a regular user (PUID/PGID, opt-in here with DOCKGE_DROP_ROOT=true, so existing installs stay root), bind-mount folders created before a stack starts, stack-path and REST hardening, .env saved 0600, ESLint 10 and CodeQL; with the switch on, Delete and Transfer handle root-owned app data through a short-lived root helper container; npm audit: 0 |
| v2.11.2 | 2026-10-05 | Dependencies: merges darthrater78's npm audit fixes (brace-expansion, engine.io, fast-uri, ip-address, joi) |
| v2.11.1 | 2026-10-05 | Fix: after System Prune, Agent Maintenance's lists didn't refresh, so removed images stayed listed (and Delete on them said "No such image"); the prune summary now names the removed images |
| v2.11.0 | 2026-10-02 | Update available detection: stacks with a newer image on their registry are marked in the stack list and on the stack page; checked every 6 hours on every node, with on/off, interval and Check now in Settings → Image updates; fix: Escape/arrow keys in the filter and stack ⋮ menus threw an error instead of closing/moving |
| v2.10.3 | 2026-10-02 | Fix: stack Update opens the terminal again and shows the live pull/recreate output |
| v2.10.2 | 2026-09-29 | Fix: volume "Prune all" no longer deletes the data volumes of stacks that are down; keeps every volume a stack declares |
| v2.10.1 | 2026-09-29 | Fix: "all images" prunes no longer print Docker's legacy-builder deprecation notice; fix: image Delete removes only the selected tag (no more "used by running container" error when two tags share an image) |
| v2.10.0 | 2026-09-28 | "Prune all images" (Agent Maintenance and REST API) keeps images any stack's compose file uses, even with no container |
| v2.9.0 | 2026-09-28 | Import Portainer stacks (access token, stack variables to .env, data left in place, roll back); plain compose import now refuses Portainer's stacks; fix: Dockge recognises its own container even with a custom hostname: or network_mode: host |
| v2.8.0 | 2026-09-28 | Import docker run containers (review the generated compose, original kept until Keep, roll back); fix: Import no longer lists Dockge itself |
| v2.7.0 | 2026-09-28 | Import Stacks page: bring existing compose stacks (running, or found in a folder) under Dockge with backup and roll back; fix: first-run setup toast showed a raw successAdded key |
| v2.6.1 | 2026-09-28 | Fix: form editors (containers, networks, URLs) change only what you edited in compose.yaml instead of rebuilding the whole file |
| v2.6.0 | 2026-09-28 | Compose check (docker compose config) before Save and Deploy; Format button and "Format on save"; fix: Save no longer rewrites your compose file (quotes, inline lists, key: nulls, networks: {}) when you didn't change it through the form editors |
| v2.5.2 | 2026-09-27 | Fix: a stack with an invalid compose.yaml (a typo, or a failed Deploy of a bad file) can now be deleted; a running stack later saved with a broken file also has its containers removed |
| v2.5.1 | 2026-09-27 | Fix: "Show update if available" now checks this fork's GitHub Releases (it polled louislam's 1.x endpoint and never fired); About's "Check Update On GitHub" opens the releases page |
| v2.5.0 | 2026-09-27 | Synced with darthrater78 v2.3.1 (mobile redesign, expandable terminals, port-conflict checks, security audit fixes); raw-keystroke host Console; transfer dialog's volume warning no longer renders as an ellipse |
| v2.4.0 | 2026-09-19 | Download Log and Copy-all on terminals; stack transfer runs server-side and rolls back cleanly on failure; named-volume warning before a transfer; clipboard copy over plain HTTP |
| v2.3.0 | 2026-09-19 | Node-to-node stack transfer; interactive progress terminal ([y/N] prompts, Ctrl+C); auto-prune dangling images on Update; login double-callback fix |
| v2.2.0 | 2026-09-19 | First release: darthrater78 v2.1.0 plus the hamphh/dockge 1.2 port (Agent Maintenance, ignore-status label, fullscreen editor, stack-list filter) |
For the full darthrater78 version history (v1.5.1 through v2.3.1), see their README.
![]() Home — status counts, agents, Compose Drift Check |
![]() Edit — compose.yaml, .env, containers, networks |
![]() Container shell |
![]() Console (with DOCKGE_ENABLE_CONSOLE=true) |
From Louis Lam's original README:
- I have been using Portainer for some time, but for the stack management, I am sometimes not satisfied with it. For example, sometimes when I try to deploy a stack, the loading icon keeps spinning for a few minutes without progress. And sometimes error messages are not clear.
- Try to develop with ES Module + TypeScript
If you love this project, please consider giving it a ⭐.
This fork doesn't run its own issue tracker or discussion board. Almost all of Dockge's code comes from upstream, so report bugs and ask questions at darthrater78/dockge (this fork's base), or louislam/dockge for the original project. Please check that the problem also happens on their release, since this fork's own additions (listed under "This fork — Ext745/dockge" above) aren't theirs to support.
Please report privately: https://github.com/Ext745/dockge/security/advisories/new
How Dockge handles security (login, API key, stored data, releases): Security architecture
If you want to translate Dockge into your language, please read Translation Guide
Be sure to read the guide, as we don't accept all types of pull requests and don't want to waste your time.
"Dockge" is a coinage word which is created by myself. I originally hoped it sounds like Dodge, but apparently many people called it Dockage, it is also acceptable.
The naming idea came from Twitch emotes like sadge, bedge or wokege. They all end in -ge.
The main objective of Dockge is to try to use the docker compose.yaml for everything. If you want to manage a single container, you can just use Portainer or Docker CLI.
Yes, you can. However, you need to move your compose file into the stacks directory:
- Stop your stack
- Move your compose file into
/opt/docker/stacks/<stackName>/compose.yaml(yourDOCKGE_STACKS_DIR) - In Dockge, click the " Scan Stacks Folder" button in the top-right corner's dropdown menu
- Now you should see your stack in the list
Yes or no. Portainer provides a lot of Docker features. While Dockge is currently only focusing on docker-compose with a better user interface and better user experience.
If you want to manage your container with docker-compose only, the answer may be yes.
If you still need to manage something like docker networks, single containers, the answer may be no.
Yes, you can.
Dockge is built on top of Compose V2. compose.yaml also known as docker-compose.yml.




















