Skip to content
Open
Show file tree
Hide file tree
Changes from 28 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
272c06d
Run development containers with rootless Docker
acrogenesis Sep 11, 2026
14a765d
Harden rootless Docker migration races
acrogenesis Sep 12, 2026
8760979
Harden interrupted Docker migrations
acrogenesis Sep 12, 2026
9db8650
Harden rootless Docker recovery
acrogenesis Sep 12, 2026
650da2f
Harden rootless Docker retry safety
acrogenesis Sep 12, 2026
5cc6b35
Close rootless Docker recovery gaps
acrogenesis Sep 12, 2026
bdc8d1a
Harden rootless Docker finalization
acrogenesis Sep 12, 2026
5b596e8
Make rootless Docker recovery durable
acrogenesis Sep 12, 2026
e1fccc0
Harden rootless Docker volume cutover
acrogenesis Sep 12, 2026
c00141e
Harden rootless Docker migration boundaries
acrogenesis Sep 12, 2026
8f42fad
Skip failure reset for new rootless Docker services
acrogenesis Sep 14, 2026
c32e98f
Document rootless Docker socket mount requirements
acrogenesis Sep 14, 2026
1353874
Run ONCE through rootless Docker
acrogenesis Sep 14, 2026
2b0e764
Allow rootless ONCE providers through engine migration
acrogenesis Sep 14, 2026
850e10e
Clarify which ONCE installations block engine migration
acrogenesis Sep 14, 2026
0f2e361
Require initialized rootless Docker before ONCE setup
acrogenesis Sep 14, 2026
9fda8c2
Allow Windows commands with unused symlinked user config
acrogenesis Sep 14, 2026
3a2156b
Support linked Windows config throughout setup and migration
acrogenesis Sep 14, 2026
0a1dce1
Preserve private Windows credentials across setup and removal
acrogenesis Sep 14, 2026
1a909d7
Remove interrupted Windows credential candidates
acrogenesis Sep 14, 2026
e23a736
Merge quattro into feature/rootless-docker
acrogenesis Oct 12, 2026
1695ad5
Recover failed rootless Docker cutovers safely
acrogenesis Oct 12, 2026
a6bb877
Merge quattro into rootless Docker
acrogenesis Oct 13, 2026
f0157da
Merge quattro into rootless Docker
acrogenesis Oct 21, 2026
5f464f6
Skip Windows hardening on ARM
acrogenesis Oct 21, 2026
457f5cf
Keep rootless Docker English catalogs in sync
acrogenesis Oct 21, 2026
48aa001
Use Bash for the Docker environment generator
acrogenesis Oct 21, 2026
e262d6c
Merge quattro into rootless Docker
acrogenesis Oct 27, 2026
75d2292
Drop one-shot migration tests
acrogenesis Oct 27, 2026
20bdb6f
Reject comma-containing Docker volume destinations
acrogenesis Oct 27, 2026
4a04bbd
Keep behavioral rootless Docker posture tests
acrogenesis Oct 27, 2026
a625146
Merge quattro into feature/rootless-docker
acrogenesis Oct 28, 2026
1b44e64
Merge quattro into feature/rootless-docker
acrogenesis Oct 29, 2026
b05e433
Reject incompatible logging before rootless migration
acrogenesis Oct 29, 2026
c52a6e3
Consolidate Windows VM regression coverage
acrogenesis Oct 29, 2026
fcb8114
Preserve legacy Windows credentials with current quattro
acrogenesis Nov 3, 2026
5c33fb6
Run Windows security fixtures on every host architecture
acrogenesis Nov 3, 2026
1f048b3
Merge current quattro into feature/rootless-docker
acrogenesis Nov 20, 2026
4c3a55f
Check rootless Docker ID mappings before migration
acrogenesis Nov 20, 2026
fe7a21f
Merge current quattro into feature/rootless-docker
acrogenesis Nov 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions bin/omarchy-install-docker-dbs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/bin/bash

# omarchy:summary=Install one of the supported databases in a Docker container with the suitable development options.
# omarchy:requires-sudo=true

options=("MySQL" "PostgreSQL" "Redis" "MongoDB" "MariaDB" "MSSQL")

if (( $# == 0 )); then
Expand All @@ -15,12 +13,12 @@ if [[ -n $choices ]]; then
for db in $choices; do
echo "Installing $db..."
case $db in
MySQL) sudo docker run -d --restart unless-stopped -p "127.0.0.1:3306:3306" --name=mysql8 -e MYSQL_ROOT_PASSWORD= -e MYSQL_ALLOW_EMPTY_PASSWORD=true mysql:8.4 ;;
PostgreSQL) sudo docker run -d --restart unless-stopped -p "127.0.0.1:5432:5432" --name=postgres18 -e POSTGRES_HOST_AUTH_METHOD=trust postgres:18 ;;
MariaDB) sudo docker run -d --restart unless-stopped -p "127.0.0.1:3306:3306" --name=mariadb11 -e MARIADB_ROOT_PASSWORD= -e MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=true mariadb:11.8 ;;
Redis) sudo docker run -d --restart unless-stopped -p "127.0.0.1:6379:6379" --name=redis redis:7 ;;
MongoDB) sudo docker run -d --restart unless-stopped -p "127.0.0.1:27017:27017" --name mongodb -e MONGO_INITDB_ROOT_USERNAME=admin -e MONGO_INITDB_ROOT_PASSWORD=admin123 mongo:noble ;;
MSSQL) sudo docker run -d --restart unless-stopped -p "127.0.0.1:1433:1433" --name mssql -e MSSQL_PID=Developer -e ACCEPT_EULA=Y -e "MSSQL_SA_PASSWORD=@dmin123" mcr.microsoft.com/mssql/server:2022-CU12-ubuntu-22.04 ;;
MySQL) docker run -d --restart unless-stopped -p "127.0.0.1:3306:3306" --name=mysql8 -e MYSQL_ROOT_PASSWORD= -e MYSQL_ALLOW_EMPTY_PASSWORD=true mysql:8.4 ;;
PostgreSQL) docker run -d --restart unless-stopped -p "127.0.0.1:5432:5432" --name=postgres18 -e POSTGRES_HOST_AUTH_METHOD=trust postgres:18 ;;
MariaDB) docker run -d --restart unless-stopped -p "127.0.0.1:3306:3306" --name=mariadb11 -e MARIADB_ROOT_PASSWORD= -e MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=true mariadb:11.8 ;;
Redis) docker run -d --restart unless-stopped -p "127.0.0.1:6379:6379" --name=redis redis:7 ;;
MongoDB) docker run -d --restart unless-stopped -p "127.0.0.1:27017:27017" --name mongodb -e MONGO_INITDB_ROOT_USERNAME=admin -e MONGO_INITDB_ROOT_PASSWORD=admin123 mongo:noble ;;
MSSQL) docker run -d --restart unless-stopped -p "127.0.0.1:1433:1433" --name mssql -e MSSQL_PID=Developer -e ACCEPT_EULA=Y -e "MSSQL_SA_PASSWORD=@dmin123" mcr.microsoft.com/mssql/server:2022-CU12-ubuntu-22.04 ;;
esac
done
else
Expand Down
52 changes: 45 additions & 7 deletions bin/omarchy-install-service-once
Original file line number Diff line number Diff line change
@@ -1,13 +1,51 @@
#!/bin/bash

# omarchy:summary=Install the ONCE service, enable its background service, and launch the TUI.
# omarchy:summary=Install ONCE with a rootless user service and launch its TUI
# omarchy:requires-sudo=true

echo "Installing ONCE..."
omarchy-pkg-add once-bin
set -euo pipefail

echo "Enabling ONCE background service..."
sudo systemctl enable --now once-background.service
if (( EUID == 0 )); then
echo "Run this command as your desktop user, without sudo." >&2
exit 1
fi

echo -e "\nLaunching ONCE..."
sudo once
# Never start a second manager while the legacy system service owns the apps.
if systemctl is-active --quiet once-background.service || systemctl is-enabled --quiet once-background.service; then
echo "An existing rootful ONCE service needs an explicit backup/restore migration." >&2
echo "Its service and application data were left unchanged." >&2
exit 1
fi

# Package queries resolve providers too: once-bin satisfies "once", so the
# package helper would leave the unpatched binary installed. Never replace an
# existing manager implicitly, even when its legacy service is stopped.
if ! once_provider=$(pacman -Qq once 2>/dev/null); then
if ! pacman -Qq >/dev/null; then
echo "Cannot verify the installed ONCE package; no changes were made." >&2
exit 1
fi
once_provider=""
fi
if [[ -n $once_provider && $once_provider != "once" ]]; then
echo "An existing ONCE package needs an explicit backup/restore migration to the patched once package." >&2
echo "Its package, service and application data were left unchanged." >&2
exit 1
fi

if [[ ! -f $HOME/.local/state/omarchy/rootless-docker/enabled ]]; then
echo "Rootless Docker is not initialized for this account. Complete omarchy-migrate before installing ONCE." >&2
exit 1
fi

systemctl --user show-environment >/dev/null
omarchy-pkg-add once
systemctl --user daemon-reload
omarchy-launch-once list
systemctl --user enable docker.service
sudo loginctl enable-linger "$(id -un)"
systemctl --user enable --now omarchy-once.service

echo "ONCE runs as your user. Local apps use http://<app>.localhost:8080."
echo "Existing ONCE namespaces and rootful application data are not moved by this installer."
omarchy-launch-once
18 changes: 2 additions & 16 deletions bin/omarchy-launch-docker-tui
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
#!/bin/bash

# omarchy:summary=Open the Docker TUI (lazydocker) with access to the Docker daemon
# omarchy:summary=Open the Docker TUI (lazydocker) for rootless development containers
# omarchy:hidden=true

# By default the install user is NOT in the docker group: membership is
# root-equivalent (a container can bind-mount / and rewrite the host as root),
# so a single process running as the user could otherwise escalate to root with
# no prompt. lazydocker needs the root-owned Docker socket, so when the group is
# absent, gate that access behind a polkit prompt. If the user has opted into
# sudoless Docker (omarchy-setup-security-sudoless-docker), the socket is already
# reachable, so run lazydocker directly — omarchy-sudo-docker answers that for
# this session, so the prompt stays until the reboot that grants the group.
# pkexec sanitizes the environment, so carry TERM through for the TUI to render
# and run lazydocker from root's PATH.
if omarchy-sudo-docker; then
exec pkexec /usr/bin/env TERM="${TERM:-xterm-256color}" lazydocker
else
exec lazydocker
fi
exec lazydocker
6 changes: 6 additions & 0 deletions bin/omarchy-launch-once
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

# omarchy:summary=Manage local ONCE applications with rootless containers
# omarchy:args=[ONCE arguments...]

exec python3 "$OMARCHY_PATH/default/once/launch.py" docker "$@"
3 changes: 3 additions & 0 deletions bin/omarchy-provision-owner
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,9 @@ create_user() {
useradd -m -G "$(user_groups)" -s /bin/bash "$username"
fi

source "$OMARCHY_PATH/install/helpers/rootless-docker.sh"
rootless_docker_ensure_subids "$username"

printf '%s:%s\n' "$username" "$password" | chpasswd
printf '%s:%s\n' root "$password" | chpasswd

Expand Down
34 changes: 0 additions & 34 deletions bin/omarchy-remove-security-sudoless-docker

This file was deleted.

49 changes: 0 additions & 49 deletions bin/omarchy-setup-security-sudoless-docker

This file was deleted.

44 changes: 0 additions & 44 deletions bin/omarchy-sudo-docker

This file was deleted.

6 changes: 3 additions & 3 deletions bin/omarchy-upgrade-to-quattro
Original file line number Diff line number Diff line change
Expand Up @@ -1410,9 +1410,9 @@ apply_system_transition() {
printf '%s\n' '{"distribution":{"require_eula":false},"browser":{"theme":{"color_scheme":0,"color_scheme2":0}}}' | \
as_root tee /usr/lib/chromium/initial_preferences >/dev/null

# Deliberately do NOT add the user to the docker group. That group is
# root-equivalent, so it is opt-in now (Setup > Security > Sudoless Docker);
# re-granting it on upgrade would silently undo that default for everyone.
# Deliberately do not add the user to the root-equivalent docker group. The
# ordered post-upgrade migration moves compatible workloads to rootless
# Docker and reserves the rootful daemon for authenticated Windows use.

# A channel's base list may still pick the stock power-profiles-daemon, whose
# powerprofilesctl runs mise's python3; the Omarchy build ships it fixed.
Expand Down
Loading
Loading