Repository navigation
Make Podman native with optional Docker compatibility - #11032
acrogenesis wants to merge 56 commits into
Conversation
|
@robosayem review |
robosayem
left a comment
There was a problem hiding this comment.
Reviewed the full diff with focus on the migration engine (migrate-databases.py, migrate-windows.py, volume-manifest.py), the updater migration, windows-vm handover, firewall changes, and the environment generator.
The fail-closed posture holds together well end to end: preflight validates every destination name and shared-volume/mount-option blocker before the first docker stop; transfer receipts are bound to the source's stopped-lifecycle identity so a resumed or re-created source invalidates them; recovery paths restore restart policies and restart the source on any failure; the OCI-spec verification after podman init cross-checks caps, mounts, ulimits, resources, and mask sets rather than trusting CLI echoes. Reusing validate_security in the Windows validator with the managed exceptions (CapAdd/Devices/Binds) carved out is a clean pattern. The windows handover closing the default-credentials path and the 0600 root-owned compose both tighten the previous model. Verified the runner invokes migrations under bash -euo pipefail, so the transfer-before-retire ordering in 1788886195.sh aborts cleanly on a mid-flight transfer failure, and ufw --force delete exits 0 on a non-existent rule (returns the error string), so that step cannot wedge a pending migration.
Two nits, neither blocking:
-
validate_securityin migrate-databases.py rejectsHostConfig.Init: trueand any customUlimitsas "needs an explicit migration". Both are extremely common in compose files for databases (e.g.init: trueon postgres,nofileulimits on mongo), and both translate directly to Podman (--init,--ulimit name=soft:hard). Worth considering as a follow-up extension so more stock stacks pass the automatic path; the fail-closed default is of course the right call for this first version. -
Multi-container runs inspect each container once in
main()and carry that snapshot intomigrate(). If a container that was stopped at snapshot time gets started by the user mid-run,migrate()stops it, transfers, and records the receipt with its stopped state — the user's start is silently swallowed (data intact, but the destination ends up stopped and the receipt says so). ComparingState.StartedAtagainst the snapshot just before the stop, or re-inspecting at transfer time, would surface it as an explicit review case instead.
Also checked the d6dc413 follow-up ("Retain Docker defaults until workload migration completes"): re-adding daemon.json (with the pinned bip and bridge-gateway DNS), the resolved stub listener on 172.17.0.1, and the no-block-boot drop-in keeps the daemon deterministic and reachable for the migration window without weakening anything — consistent with the pin-then-migrate design.
Nice work overall — the receipt/identity model and the per-container verification are the strongest parts.
|
I found two issues with this implementation.
The user running the migration has this in their desktop environment:
Podman’s default behavior is to copy host proxy variables into newly created containers. The migration runs essentially:
without disabling that behavior. The resulting container can therefore contain:
even though the Docker source never had HTTPS_PROXY. The runtime verifier also does not compare environments. TL;DR, Add --http-proxy=false and preferably verify the resulting environment.
|
|
|
This is a substantial product shift (Podman-native + optional Docker compat + Quadlet DB services), not a small fix. Before code review depth: is Podman-as-default something maintainers want for quattro? If yes, this needs a migration plan for existing Docker installs and a rebase onto current install/menu surfaces. Happy to deep-dive the install path once that's a yes. |
|
Thanks for flagging the product decision. This remains the Podman-default proposal for maintainers to compare with #11386 and the opt-in approach in #14077; the choice of default still needs their agreement. The existing-install migration plan and supported/blocked workload boundaries are documented in docs/podman-migration.md. Updated the branch to current quattro (492b883) through a normal merge at 4751f91, preserving the removal of the legacy sudoless-Docker toggle and the current install/menu surfaces. The CLI and 27 focused configuration, migration, ONCE and Windows suites completed without failures; the separate packaging-checkout check was skipped. |
|
Superseded by #16173, maintained from my fork so I can keep its source branch current. The replacement retains all commits from this PR and adds the tested quattro integration and English catalog fixes. Prior discussion, review history and runtime validation evidence remain available here. |
Make Podman the native container engine on fresh installations and upgrades, with Docker Compose as the default frontend for Compose projects. New development databases use rootless Quadlet user services with persistent named volumes, managed through systemd and inspected in Podman TUI or Podman Desktop. Docker command/API compatibility is optional on fresh installs and retained during Docker upgrades to preserve existing scripts and package dependencies. Windows retains its existing disk and credentials and launches through authenticated rootful Podman and fullscreen RDP.
Changes
podman-dockerfrom the fresh-install defaults. Add Install > Development > Docker Compatibility andomarchy install/remove docker-compat; refuse to replace an installed Docker engine through this optional path. Migration retains the shim for existing Docker providers, preserving dependencies, but leaves native-only systems without the shim or automatic Docker API environment changes.podman composeand optionaldocker compose, using Podman's provider precedence and respecting explicit overrides. Keep Podman Compose for the authenticated Windows helper, which invokes it directly with local-engine flags. Super+Shift+D opens Podman TUI; Desktop remains available in the launcher.oncepackage alone does not. Fresh rootless ONCE support is described below. Defer the shim during package repair and the 3-to-4 bootstrap while any real Docker provider is installed, includingdocker-git; every non-shim provider receives workload preflight and transfer before replacement. Failed package-database queries abort instead of being treated as an absent engine.docker-git, and retire stock defaults or archive custom files only after engine removal.Migration scope
ONCE uses the patched source package and rootless user integration below. Existing rootful deployments remain protected; optional Docker CLI compatibility alone is insufficient.
Eligibility follows inspected configuration rather than container names or image labels. Automatic transfers support the default bridge, localhost ports, private local volumes and supported resource/security settings. They remain rootless. Privileged/device workloads, host-directory/socket mounts, custom networks, shared volumes, custom domain names, custom daemon confinement/user mappings and unknown settings require explicit migration.
Destination mounts, devices, capabilities, seccomp, masked/read-only paths, environment and volume metadata are checked before the application runs. Non-root image users receive no capabilities, so workloads relying on later setuid/file-capability elevation need explicit handling. Windows remains the separate authenticated rootful case.
Cached images, unattached volumes, GPU/CDI workloads, Docker-in-Docker and persistent BuildKit are outside automatic transfer. Unsupported workloads keep Docker and leave the migration pending. Completed transfers remain on Podman if a later transfer fails; retained Docker data is a recovery checkpoint. Production services still need application-specific readiness checks. Source reinspection detects stale plans but does not lock out arbitrary concurrent engine changes.
Rootless ONCE
ONCE setup refuses legacy package providers before package changes, and remains retryable from the menu until its user service is enabled.
ONCE now runs as a user service against the local rootless engine, with a loopback-only proxy on HTTP 8080 / HTTPS 8443. The launcher clears remote Docker overrides, verifies rootless operation, requires the patched ONCE build, disables binary self-update, and keeps backups private. One-time package/lingering setup can require administrator access; ONCE and its applications run without sudo.
The companion packaging PR adds a source-built
oncev0.3.2-omarchy1. Real Writebook testing found two Podman restore incompatibilities that reported success without restored content: archive entry prefixes and extraction through an unstarted temporary container's root filesystem. The patch normalizes backup paths, restores directly into the volume, rejects malformed legacy archives, and waits for final exec status. Rootless proxy settings are opt-in, preserving legacy rootful defaults outside the launcher.Existing rootful ONCE deployments still need explicit, verified backup/restore migration. A legacy ONCE package or an active/enabled legacy system service keeps generic engine migration pending; the rootless
oncepackage alone does not. An active/enabled legacy manager stops the optional installer before package/service changes. The new installer does not adopt or delete old application data. Public hosting/automatic public HTTPS are outside this local desktop integration.Validation: built and installed the exact source package in Omarchy Lab; upstream internal Go suite and new archive/exec/proxy regressions pass. Writebook creation, authenticated content and credential preservation through backup/restore, stop/start, container replacement, actual scheduled update/backup checks and reboot pass on each engine. Verified user-owned background processes, mode-0600 backups, loopback listeners and unchanged host privileged-port restrictions. New launcher/installer guards, focused migration/posture tests and CLI pass. Four real settings payload builds verify both variants on both proposals. This is targeted Lab validation, not a fresh ISO run or a new independent review loop.
Validation
818e428a, docsba820945): migration/package-repair, optional compatibility and Windows local-engine regressions pass, alongside CLI, manifest/style and syntax/whitespace checks. With user provider configuration and Docker endpoint variables excluded, nativepodman composeselects Docker Compose, validatesconfig --environment, and creates/starts/executes/removes a disposable rootless container. Acceptance now checks provider identity and environment validation. Fresh ISO validation remains pendingpodman-tuipublication./var/run/docker.sock. Podman also needs a rootless socket-mount adaptation; after that change the same application additionally rejects Podman's advertised API version. A scoped subdirectory-volume probe passes, but complete application compatibility is not established. Both manuals now distinguish client endpoint selection from bind mounts; no global socket remapping, permission weakening or API-version spoofing is introduced.0f3a04eb, settings57ff1ba, and ISO54af21c. This review does not replace the pending fresh ISO integration run.0f3a04eb, settings57ff1ba, ISO54af21c): all Podman shell suites and the full CLI suite pass. New tests cover host/subordinate-ID overlap rejection before changes, both native and optional-compatibility acceptance environments, actual Quadlet-generated local volume commands, and ONCE rejection before package or engine mutations. A scoped live Lab service test starts/stops the local container withCONTAINER_HOSTpointing at an unavailable remote socket. Both settings variants build real payloads against current and pinned stable source (four builds), verifying the local restart override is included only when available. All Windows suites pass, including a regression that preserves the local disk when a remote engine has no matching VM. The ISO shell suite and 63 Python tests pass; its migration fixture now tests ONCE refusal separately and uses a harmless Docker-CLI dependency package for provider replacement. No fresh ISO or complete migration was repeated for these review fixes.590bacfa): full CLI and focused Quadlet, compatibility, migration, API-environment, menu and script-style tests pass. All six database types started in Omarchy Lab and retained application data across service recreation. Redis, PostgreSQL, MySQL, MongoDB and MSSQL also resumed with their data after reboot; MariaDB remained deliberately masked because it shares MySQL's default port. A real conflicting-name fixture survived failed service startup and cleanup. The optional menu was visually inspected, and the real-engine compatibility guard refused Lab's existing Docker package. Positive install/remove behavior and configured-endpoint preservation have focused stub coverage. This was targeted testing in the existing guest, not a fresh ISO or a repeated full migration.aa9895d1): full CLI and focused launcher, migration, migration-shell, preinstall, Hyprland-default and script-style tests pass. Built and installed package2.0.0-1.1with Podman6.1.1in Omarchy Lab. Verified the rootless connection, Super+Shift+D, running Redis container view and live logs. The package requirespodman>=6. A fresh ISO validation of this addition remains pending package publication to Omarchy's mirror; the earlier ISO evidence below predates it.3818fe86): all 18 focused Podman/Windows/quattro suites and CLI pass. New regressions reject pending Windows disk cleanup, restored mixed-case capability drops, unsupported domain names at preflight, alternate-provider bypass, premature retirement, post-start destructive cleanup, missing-UFW failure and terminal status misrouting in the preceding implementations. Environment and batch-drift regressions fail against the preceding implementations.CapDrop: [all]migrated through the real helper and retained zero effective/bounding capabilities in Podman inspect and/proc/1/status. Windows handover guards pass full command-dispatch fixtures and real pacman queries against isolated provider metadata.538c25e): 14 scenarios across both recipes pass, including real pacman upgrades/reinstalls withdocker-git, provider replacement and no-provider installs. Failed-query cases exercise the actual scriptlet function with a failing pacman stub. Old scriptlets fail the alternate-provider regression. Packaging build-isolation and self-tests CI both pass.a128dc1a, settings28a30adand ISO4aecb33passed a fresh interactive installation, the 92-second graphical/API suite and a separate legacy/custom migration scenario. Windows installation, fullscreen RDP and preserved-disk checks were also completed earlier. This image predates the review fixes; no new full migration/reboot or ISO build was performed for the latest targeted fixes.Earlier ISO SHA-256:
ad7e653117909231e868b1d5c506dafd3299928e4e15310a2ff3f0d15f23e9df. The earlier Lab aggregate passed 239/240 shell files; the unchanged screenshot-sanity blank top-bar assertion failed independently as well. No clean aggregate result is claimed.Companion PRs
Latest focused validation
Independent Claude Fable 5.1 and Codex review cycles completed; final followups report no actionable findings.
Windows setup stages private credentials before writing the privileged Compose definition and preserves existing credentials on failure. Removal deletes credentials and private staging files left by interrupted installs through linked config directories, without following file symlinks, and reports cleanup errors. Legacy Compose file symlinks are rejected before migration, preserving their targets for explicit handling. Nine isolated lifecycle regressions pass on each proposal.
ONCE provider and legacy-service migration guards, installer refusal before changes, and menu retry behavior pass regression tests. The menu retry and uninitialized-account refusals were also checked in Omarchy Lab without restarting the running ONCE workload. All Podman-focused tests, Quattro upgrade tests and CLI tests pass after merging current Quattro. Missing optional user units warn without aborting the upgrade.
This review cycle did not rerun the full ISO acceptance suite or rebuild ONCE; the earlier real Writebook lifecycle evidence below remains separate.
Screenshots
Windows 11 running fullscreen through the Podman-backed launcher:
Podman Desktop showing the migrated Redis and PostgreSQL containers running, with the original Podman test containers deliberately stopped:
The migrated Windows disk still contains the original proof file. This capture predates the fullscreen adjustment shown above. The existing Windows account name is retained during migration; the new-install default is
omarchy.Fresh packaged Podman Desktop during the successful API socket lifecycle check: