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.
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.