-
Notifications
You must be signed in to change notification settings - Fork 376
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
Container with USER specified should use that, not a new one created by x11docker #85
Comments
It's not a bug, it's a feature. :-p x11docker does a clean user setup. Also, shared files with For that reasons x11docker will not enable But as you point out, in some cases the user setup in image is preferred. Some options like I did some test runs with
x11docker will not change |
Thanks for the quick response @mviereck ! Looks like
The top version (my old from before I found x11docker) lets me use sudo in the image, whereas the bottom version (x11docker) does not. So you must have left a flag flipped somewhere. |
As a default security setting x11docker sets docker run options Side note: You don't need to set |
A minor change: Option
|
…-dbus-system. Not supported: --home (#85)
A bit late, but however: It is easier to set |
Hi, thanks for putting together x11docker! Great script. One bug I've found is that if I have a docker script which specifies e.g.
USER dock
, the x11docker script does a number of things wrong:These are erroneous behavior, I believe. If I understand the reasoning correctly, x11docker creates a non-root user to avoid security issues. However, the manner in which it does this breaks images that already use a non-root user. I had to specify
--runasroot "rm -rf /fakehome/${USER}; ln -s /home/dock /fakehome/${USER}"
as a workaround, and the logged-in username is still wrong.I'll point out that the sudoers behavior of x11docker would be good to retain.
The text was updated successfully, but these errors were encountered: