-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Permission Denied from rust-analyzer #270
Comments
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 |
Even more days down this rabbit hole: |
@SergioGasquez @georgik are these docker images still maintained? |
Yes, somewhat. I forgot to publish the new tags for 1.81.0.0, but just launched the action now, also I should run it for 1.82.0.0. Currently, the main reason to keep maintaining this tags is that they are used as base images for the wokwi builder images. Maybe we can discuss if we want to keep it this way. Regarding the issue @DaneSlattery, it comes from mixing the published tags with the devcontainer settings in esp-idf-template. Is there any reason to use the Dockerfile that lives in esp-idf-template? |
I personally use the Dockerfile in |
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.
The text was updated successfully, but these errors were encountered: