about summary refs log tree commit diff
path: root/bin/run-guix-container.rb
AgeCommit message (Collapse)Author
2026-09-26run-guix-system-container: run one container at a time, LIST commandPjotr Prins
* START is refused while a previously started container is still alive (ERR already running container <pid>) * new LIST command reports running containers, including those started by previous daemon instances (via a /proc scan), so they can be found and KILLed after a daemon restart * client: new --list option; README updated
2026-09-26run-guix-container: new toolPjotr Prins
A C daemon (run as root) that starts Guix system containers on request over a line-based network protocol, plus an unprivileged Ruby client. * START/KILL/LOG/FINGERPRINT protocol; one request per connection * strict validation of store items before exec (HASH-run-container name, guile shebang, container markers, immutable store file) * --fingerprint WORD identifies the daemon instance (random hash when unset); verified by clients and passed to containers in GUIX_CONTAINER_FINGERPRINT * on SIGINT/SIGTERM: SIGTERM all started containers, 10s timeout, then SIGKILL * container boot output appended to /var/log/guix-containers/ * unit tests for launcher and fingerprint logic