diff options
Diffstat (limited to 'openspec/changes/archive/2026-09-24-switch-docker-rootful/specs/container-runtime')
| -rw-r--r-- | openspec/changes/archive/2026-09-24-switch-docker-rootful/specs/container-runtime/spec.md | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/openspec/changes/archive/2026-09-24-switch-docker-rootful/specs/container-runtime/spec.md b/openspec/changes/archive/2026-09-24-switch-docker-rootful/specs/container-runtime/spec.md new file mode 100644 index 0000000..7edb25d --- /dev/null +++ b/openspec/changes/archive/2026-09-24-switch-docker-rootful/specs/container-runtime/spec.md | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | ## REMOVED Requirements | ||
| 2 | |||
| 3 | ### Requirement: A rootless Docker daemon runs on every NixOS host | ||
| 4 | **Reason**: Switched to a standard rootful Docker daemon — the rootless per-user systemd service didn't reliably start in already-logged-in sessions, causing real `docker` CLI failures in practice. | ||
| 5 | **Migration**: Replaced by "A Docker daemon runs on every NixOS host" below. | ||
| 6 | |||
| 7 | ### Requirement: The Docker CLI connects to the rootless daemon without manual configuration | ||
| 8 | **Reason**: Rootful Docker uses the standard system-wide socket path and `docker`-group membership instead of a per-session `DOCKER_HOST` export, so this requirement no longer applies. | ||
| 9 | **Migration**: Replaced by "The user account has access to the Docker socket" below. | ||
| 10 | |||
| 11 | ## ADDED Requirements | ||
| 12 | |||
| 13 | ### Requirement: A Docker daemon runs on every NixOS host | ||
| 14 | Every NixOS host built from this flake's shared system module SHALL run a Docker daemon as a system-level service, started at boot rather than tied to a user login session, without requiring per-host opt-in. | ||
| 15 | |||
| 16 | #### Scenario: Daemon available after boot | ||
| 17 | - **WHEN** a NixOS host built from this flake's shared system module finishes booting | ||
| 18 | - **THEN** a Docker daemon is running as a system service, independent of whether any user has logged in | ||
| 19 | |||
| 20 | ### Requirement: The user account has access to the Docker socket | ||
| 21 | The user account provisioned on a NixOS host built from this flake's shared system module SHALL be a member of the group that grants access to the Docker daemon's socket, so Docker CLI commands work without `sudo` or manual connection configuration. | ||
| 22 | |||
| 23 | #### Scenario: Docker command works without sudo | ||
| 24 | - **WHEN** the provisioned user runs a `docker` CLI command on a NixOS host built from this flake's shared system module | ||
| 25 | - **THEN** the command reaches the daemon and executes, without requiring `sudo` or any manually exported connection configuration | ||
