Skip to content
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

Absolute minimum requirement on host #444

Closed
liyimeng opened this issue May 31, 2022 · 3 comments
Closed

Absolute minimum requirement on host #444

liyimeng opened this issue May 31, 2022 · 3 comments
Labels

Comments

@liyimeng
Copy link

I am a little confused. I see there is x11docker/xserver docker images. What dose it provide? If we have this image, what is the bare minimum requirement on host? Base is needed of cause. X still needed? GPU drivers still needed? If I want a most clean host env, what is the absolute minimum requirements?

@mviereck
Copy link
Owner

mviereck commented Jun 2, 2022

If I want a most clean host env, what is the absolute minimum requirements?

It depends on what you want to do. To run a GUI in a docker container appearing on your monitor:
As a core you need bash, docker (or podman) and Xorg (+xinit).
Additionally recommended tools are xauth xclip xhost xrandr xdpyinfo.

GPU drivers still needed?

Yes, Xorg needs them to access the monitor.

I see there is x11docker/xserver docker images. What dose it provide?

x11docker/xserver provides nested X servers that can run in an already running X session, e.g. a desktop environment.
The supported x11docker X server options are documented here: https://github.com/mviereck/dockerfile-x11docker-xserver

@liyimeng
Copy link
Author

liyimeng commented Jun 7, 2022

Thanks a lot! @mviereck

@mviereck
Copy link
Owner

mviereck commented Jun 8, 2022

Since today x11docker supports to run Xorg in a container of x11docker/xserver. Use options --xorg --xc.
You would need to update x11docker to latest beta (x11docker version: 7.1.5-beta-17), and also update the image x11docker/xserver.
This reduces dependencies on host, x11docker should work with just bash+docker+x11docker/xserver.
I am not sure if the GPU drivers are still needed on host. Likely yes to provide the kernel modules.
Running Xorg in container is still experimental; it might fail in different setups than mine and needs to be tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants