-
Notifications
You must be signed in to change notification settings - Fork 379
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
How insecure is --hostdisplay #57
Comments
In general, It is on you to trust or distrust an image and the application. Personally i distrust internet browsers as I imagine they may access X with javascript in some way and e.g. grab passwords. Option
The sandbox features of chromium only work with capabilitiy This special case,
That should not be the case, something is wrong here. |
Thanks for your answer. I've installed xpra and on the first run, it starts a full screen "Weston Compositor - X1" window and fails with connection error. See this log. On the second run it starts without the full screen "Weston Compositor - X1" window and has no GPU support. See this log. Maybe it's a missing dependency or config? Edit: If I only use Another hint: I don't use GDM (GNOME display manager) at the moment, i start the gnome shell via |
--gpu: Warning about Wayland issues with NVIDIA --xpra-xwayland: set weston --fullscreen
Thank you for testing this!
In the logs I found you have an xpra version with a cookie bug (a warning is shown). x11docker circumvents this with an I've uploaded an update to master branch that checks whether
You have a closed source NVIDIA driver. It has serious issues with Wayland, most probably you won't be able to use Wayland at all on your system.
This should not happen, x11docker uses a wrapper to avoid this. I will investigate further. |
The I've also installed xhost and it is used as expected. Here are the logs I've tested nouveau first and switched to nvidia because I need CUDA support for video editing, hopefully it works in Docker Container too. As far as I know, NVIDIA is working on EGL to get Wayland support. Maybe XWayland will work better with this in next release of xorg server. The usability of nouveau + Wayland + XWayland + Weston was not good. There was no seamless window and resize / full screen does not work, If I remember correctly. Have you a better experience with this? The best would be, If I can use nouveau on host and nvidia / CUDA only in some Docker containers. But at the moment it looks impossible?! |
The logfile shows that chromium itself is crashing while xpra works fine. You can see the chromium output with options Did you succeed with the second try/logfile with chromium image w/o nvidia? Solutions for seen error messages:
It should work with at least
That would be good news. NVIDIA was not very cooperative in the past, from what I've heard, neither with nouveau nor with Wayland developers.
Option
I doubt that this will ever be possible. The core of nvidia driver is a kernel module, and only one of either nvidia or nouveau kernel module can run at a time. Containers use the kernel from host. |
The comand But don't worry, I will stay with Thank you for your support 👍 |
Finally I had a look at No idea what is different with dbus on arch. Maybe it is some dependency on running systemd services. The next update includes a warning with a hint to use |
Hello Sandro, regarding the origin question: I have published image You can try e.g. |
First things first. Thank you very much for this project. I'm able to run chromium with sound / nvidia GPU support like if it's installed on host system.
I use the command
x11docker --clipboard --pulseaudio --gpu -- sandrokeil/arch-chromium-nvidia:2018.06.01 chromium --no-sandbox
The log shows the warning:
Does this mean it's less secure than running chromium on host system? xpra/nxagent doesn't work or looks ugly (extra compositor window where chromium will be painted, no resize / fullscreen support). To be productive, I think
--clipboard
is also needed for each application.By the way, any chance to get rid of the
--no-sandbox
chromium option or does it not matter in the container?Here are the logs
x11docker.log
The text was updated successfully, but these errors were encountered: