chore(docker): drop root, run containers as willow user#434
Merged
intendednull merged 1 commit intoApr 27, 2026
Merged
Conversation
Add willow uid 10001 + USER directive in runtime stage of relay, replay, storage Dockerfiles. chown writable dirs (/etc/willow, /shared, /var/lib/willow) before USER switch. Web: switch nginx:alpine to nginxinc/nginx-unprivileged:alpine (uid 101, listens 8080). Compose maps host 8080 to container 8080. Refs #314 https://claude.ai/code/session_016cmtqT7yEQUgjcLgz4pARP
This was referenced Apr 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
what
container ran as root. bad. now run as willow.
how
useradd -r -u 10001 willow, mkdir + chown/etc/willow,/shared(relay),/var/lib/willow(storage),USER willowbefore ENTRYPOINT.nginx:alpine->nginxinc/nginx-unprivileged:alpine(uid 101, listens 8080 by default). docker-compose maps host:container 8080:8080.verify
docker daemon not reachable in this sandbox so live
docker buildskipped. relying on master PR CI for full image build smoke. no Rust code changed sojust checkunaffected.tradeoff
picked
nginxinc/nginx-unprivilegedover patching nginx config to listen on 8080 + chown html dir. one-line image swap, upstream-maintained, no custom config drift. runner-up rejected: more files to maintain for same outcome.Refs #314
https://claude.ai/code/session_016cmtqT7yEQUgjcLgz4pARP
Generated by Claude Code