-
Notifications
You must be signed in to change notification settings - Fork 313
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
Support shared home folder #10674
Comments
This works for me with a regular distro when I create the symlink and the target folder myself. Not sure I understand your setup: Is |
tl;dr: i think this is neither related to immutable distro or distrobox, but the extension being unable to attach to multiple running containers simultaneously. (e.g have one window connect to container A and another window connected to container B)
scarf@fedora /v/h/scarf> distrobox enter prism
📦[scarf@prism scarf]$ echo hi > /var/tmp/hi
📦[scarf@prism scarf]$ ls -alh /var/tmp/hi
-rw-r--r--. 1 scarf ubuntu 3 2월 3 19:05 /var/tmp/hi
📦[scarf@prism scarf]$ I think so.
are you referring to
however, now i'm unable to attach to existing session with following errors: v/h/s/r/c/Cataclysm (feat/report-save-file-version)> code --folder-uri vscode-remote://attached-container+$(printf "fedora" | xxd -p)/$(pwd)
[4013 ms] Start: Run in container: cat '/home/scarf/.vscode-server/data/Machine/.connection-token-cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba' 2>/dev/null || (umask 377 && echo '81d3d282-a360-49b8-83aa-01c07bd47017' >'/home/scarf/.vscode-server/data/Machine/.connection-token-cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba-4050301f-cd57-4b75-a989-7876e8d1e8be' && mv -n '/home/scarf/.vscode-server/data/Machine/.connection-token-cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba-4050301f-cd57-4b75-a989-7876e8d1e8be' '/home/scarf/.vscode-server/data/Machine/.connection-token-cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba' && rm -f '/home/scarf/.vscode-server/data/Machine/.connection-token-cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba-4050301f-cd57-4b75-a989-7876e8d1e8be' && cat '/home/scarf/.vscode-server/data/Machine/.connection-token-cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba')
[4016 ms]
[4016 ms] /bin/sh: line 79: /home/scarf/.vscode-server/data/Machine/.connection-token-cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba-4050301f-cd57-4b75-a989-7876e8d1e8be: Permission denied
[4016 ms] Exit code 1
[4019 ms] Command in container failed: cat '/home/scarf/.vscode-server/data/Machine/.connection-token-cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba' 2>/dev/null || (umask 377 && echo '81d3d282-a360-49b8-83aa-01c07bd47017' >'/home/scarf/.vscode-server/data/Machine/.connection-token-cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba-4050301f-cd57-4b75-a989-7876e8d1e8be' && mv -n '/home/scarf/.vscode-server/data/Machine/.connection-token-cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba-4050301f-cd57-4b75-a989-7876e8d1e8be' '/home/scarf/.vscode-server/data/Machine/.connection-token-cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba' && rm -f '/home/scarf/.vscode-server/data/Machine/.connection-token-cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba-4050301f-cd57-4b75-a989-7876e8d1e8be' && cat '/home/scarf/.vscode-server/data/Machine/.connection-token-cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba')
[4019 ms] /bin/sh: line 79: /home/scarf/.vscode-server/data/Machine/.connection-token-cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba-4050301f-cd57-4b75-a989-7876e8d1e8be: Permission denied
[4019 ms] Exit code 1 it seems to be due to sessions created by |
Is the home folder shared between containers? That currently doesn't work and could explain the permission error. |
I see, thanks for the confirmation. I'm switching between multiple distrobox containers to encapsulate system packages but they share the same home directory, so i think that was the cause of the issue. Could the team consider this feature (shared home directory) in their future roadmap? This would make attaching multiple distrobox containers simultaneously possible. thanks for your time. |
Steps to Reproduce:
encountered while following https://prismlauncher.org/wiki/development/build-instructions/linux/
distrobox create --image ubuntu:latest --name prism; distrobox enter prism
Dev Containers: Attach to Running Container
and chooseprism
maybe it's because it's symlinked? what's weird is i was already attaching an existing distrobox with vscode and this is the second container where i get this error.
Does this issue occur when you try this locally?: No
Does this issue occur when you try this locally and all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: