ansible / ansible/ansible-dev-tools

BUG: Devcontainer running in Docker does not set UID

Open
#376 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug devspaces
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.