ansible / ansible/ansible-dev-tools
BUG: Devcontainer running in Docker does not set UID
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 207
- Forks
- 71
- Avg merge
- 4d 6h
- Merged PRs (30d)
- 4
Description
After https://github.com/ansible/ansible-dev-tools/pull/364, the container is now running as root. The setting for a docker devcontainer "updateRemoteUserUID": true does not work for the root user, therefore all file ownership inside the container is not correct. Since the working directory is volume mounted, all files created will be owned by root on the host machine, instead of the UID of the user.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review pull request 364 and the Docker devcontainer configuration to find where the container user is selected. Reproduce the volume-mount ownership problem, then verify that files created in the working directory use the host user's UID rather than root.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100