fix: Run dev container as host UID/GID #4
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/non-root-docker-user"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bind-mount writes from
dx servepreviously landed as root on the host, blocking non-root deletion. The dev image now creates adevuser with the host's UID/GID at build time, runs the container under that user via composeuser:, and the justfile passesHOST_UID/HOST_GID(the standardUID/GIDnames are readonly in bash and cannot be exported to compose).Files written by the container into the bind-mounted source tree are now owned by the invoking host user.
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com