-
Notifications
You must be signed in to change notification settings - Fork 282
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
Filesystem user mapping different than Docker Desktop #2514
Comments
Anybody any news about this topic? |
I have upgraded to Rancher Desktop 1.5.1 and VSCode 1.71.1 with "remote - containers" 0.251.0and nothing has changed, the problem is still there. |
Sorry, there is no news yet; we haven't gotten around to looking into this issue yet. |
I have simplified the test case, definitely it has nothing to do with VSCode. When I run this command using Docker Desktop for Mac (M1), using the straightforward Next-Next-Next setup, I get:
When I run the same command in Rancher Desktop for Mac (M1) 1.5.1, using dockerd/moby (docker cli), I get:
Switching to containerd (nerdtcl cli) does not change the result:
What is surprising to me is... this looks like a pretty straightforward run... I can't believe I am the first person finding the issue... |
After updating to Rancher Desktop 1.6.0, still no change. |
Updated to 1.7.0 still no change. Is anybody tracking the bug? |
I have upgraded to 1.8.1, it still fails. |
Upgraded to 1.9.1... it still fails |
I Tested 1.10.1... no change. I bet nobody is working on it. I see @jandubois has tagged with "need-to-repro"... Do you want us to have a meeting so I show you the failure? |
The label means it is in the queue for somebody from the team to reproduce it locally (and ideally write a BATS test for it), but you are correct, in that nobody has worked on it yet. Once we repro it, it will be put into the backlog. If we can't repro it, we'll be asking more questions here. Sorry for the long delay, it is definitely something I would like to see addressed, but we didn't have somebody available to repro/analyze it yet. 😞 |
Tested 1.11.1, no difference. |
Tested 1.13.1, no change, it still fails. |
Tested with 1.14.2, no change, it still fails. |
This appears to be due to the default volume mount type. I had the same issue when using the default rancher desktop settings. I changed the emulation to VZ and the volumes to virtiofs and it now correctly remaps. |
Cool! I thinks this is "only" a workaround, because I think the default behaviour should be "like-DockerDektop". Also, the 2 features you name ara tagged as "experimental" in RancherDesktop, which makes it a little scary. But it works:
It seems to work for Visual Studio Code dockerized environment, because it was my initial report. |
Actual Behavior
When using the VSCode remote-container plugin to open a project in-container, the files are owned by the external user instead of root. That is: file owning is not mapped from outside to inside.
I am creating this as a bug because in Docker Desktop for Mac the filesystem user is mapped from the local user to root, but in Rancher Desktop for Mac, it is not; since I understand we want to mimic this kind of behaviours from DD, I think it may be a bug
Also, it MAY be a bug in VSCode remote-container extension, but since it works on Docker Desktop, looks like the problem is in Rancher Desktop.
Steps to Reproduce
I have created a simple test repository reproducing the error at https://gitlab.com/javier-sedano/user-map/-/tree/master
Result
I see the following in a VSCode terminal:
Notice how files are owned by 502, which is my user in the host (my Mac).
This causes modern git to fail (causing the git view of VSCode to fail), for example, but other things fail as well.
My files in the host, outside the container:
Expected Behavior
When using Docker Dektop for Mac, and following the same procedure, the following is shown in the terminal:
And outside the container:
Additional Information
No response
Rancher Desktop Version
1.4.1
Rancher Desktop K8s Version
Disabled (1.22.7)
Which container runtime are you using?
moby (docker cli)
What operating system are you using?
macOS
Operating System / Build Version
12.3.1 Monterey
What CPU architecture are you using?
arm64 (Apple Silicon)
Linux only: what package format did you use to install Rancher Desktop?
No response
Windows User Only
No response
The text was updated successfully, but these errors were encountered: