diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/README.md b/README.md index 562b0ed..5d322b5 100644 --- a/README.md +++ b/README.md @@ -153,11 +153,15 @@ error: run-guix-system-container must run as root (uid 1000): container START fails ``` -Container boot output goes to `/var/log/guix-containers`. If that -directory cannot be created or written (read-only `/var`, hardened -unit) the daemon only warns -- containers still run -- but a boot -failure then leaves no log to read. With `ProtectSystem=strict` set -`LogsDirectory=guix-containers` (or `ReadWritePaths=/var/log/guix-containers`). +Container boot output goes to `/var/log/guix-containers`, or wherever +`--log-dir DIR` (or `$GUIX_CONTAINER_LOG_DIR`) points -- the flag wins over +the variable, and the default above applies when neither is given. If that +directory cannot be created or written (read-only `/var`, hardened unit, a +daemon that is not system-wide) the daemon only warns -- containers still +run -- but a boot failure then leaves no log to read. With +`ProtectSystem=strict` either point `--log-dir` at a writable path or set +`LogsDirectory=guix-containers` (equivalently +`ReadWritePaths=/var/log/guix-containers`). ## Running it @@ -434,7 +438,8 @@ guix package -p /tmp/rootless-test/profile -i coreutils # built via the host d guix shell -C -p /tmp/rootless-test/profile -- /bin/sh -c 'id' ``` -Inside such a container you are still yourself (`uid=1000(wrk)`), there +Inside such a container you are still yourself (your own uid, e.g. +`uid=1000`), there is no shepherd, no sshd and no `guix system` services — but a stack of foreground daemons (nginx + php-fpm + octave, ports > 1024, data via `--share=...`) runs fine for fast zero-privilege smoke tests. |
