ansible / ansible-dev-tools

Ansible automation developer tools
https://ansible.readthedocs.io/projects/dev-tools/
GNU General Public License v3.0
85 stars 29 forks source link

BUG: Devcontainer running in Docker does not set UID #376

Open jcox10 opened 2 months ago

jcox10 commented 2 months ago

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.