Open DaneSlattery opened 1 month ago
Further investigation to this: changing the ownership of the mounted files prevents files from being used by the local user. For example, the built artifacts cannot be deployed using web-flash
.
Even more days down this rabbit hole:
Docker Desktop mounts this with root:root
ownership. Docker CE
mounts with the correct ownership!
Rust analyzer cannot write to the
target
directory.I am running docker on Ubuntu 24.
When using this image
idf-rust:esp32_latest
, with the dev container definition from the template, I see the following error fromrust-analyzer
From the command line on the container, the workspace is mounted as root.:
, while locally, the files are owned by my user:
The docker user has the following id:
My local user has the following id:
I have tried:
"remoteUser":"esp"
indevcontainer.json
.adduser --disabled-password --gecos "" ${CONTAINER_USER}
:What seems to have worked is to change the ownership of the mounted files on the container:
I'm wondering if this is something that we can address, either in the container or in the template.