Two root causes for "invalid argument" when chowning non-root UIDs/GIDs in image layers: 1. Missing uidmap package: without setuid newuidmap/newgidmap binaries, Podman can only map a single UID (0 → current user) in the user namespace. Any layer file owned by gid=42 (shadow) or similar then has no mapping and lchown returns EINVAL. Now install uidmap if absent. 2. Stale Podman service: a service started before subuid/subgid entries existed silently keeps the single-UID mapping for its lifetime even after the entries are added and podman system migrate is run. Now always kill and restart the service on each start.sh run so it always reads the current subuid/subgid configuration. https://claude.ai/code/session_01FKCW3FDjNFj6jve4niMFXH |
||
|---|---|---|
| .. | ||
| .env.example | ||
| docker-compose.yml | ||
| Dockerfile.server | ||
| Makefile | ||
| start.sh | ||