-
Notifications
You must be signed in to change notification settings - Fork 378
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
Running Ubuntu desktop #245
Comments
Overall this is possible. Some points can cause issues:
If you have Ubuntu on your host, do not use
You can set up your own Xorg and Docker command, of course. The x11docker wiki might help you. x11docker wraps Xorg and Docker and makes it convenient to just run it. x11docker does several setup in background that can spare you some work and some issues. For example, it automatically sets the time zone in container to the same as on host; you did this manually in the Dockerfile. |
Wow, thanks for replying so quickly :) I did see
A privileged container would be fine. Would that allow hot plugging USB devices ootb? Alternatively, maybe I could just mount
That also sounds like a good plan in case I can't get things working 👍
My activity on the host would use a text tty, it's only the container that would require a graphical tty, so this shouldn't be a problem I assume?
Thanks, that's what I thought. Do you know what features it would be missing? Would |
Be careful with giving privileges.
It is also difficult to access audio CDs and DVDs. Compare ehough/docker-kodi#32
This setup is fine.
|
Sounds like automatically mounting from the host is the way to go if I don't use Just as a test I managed to boot my docker image with |
That should work. Keyboard and mouse are managed by Xorg (maybe with some host udev magic, too). x11docker runs X on the host, so the X input devices will work.
Initially you said:
with
Docker handles the network access for the container; I am not familiar with the details.
I have close to no experience with bluetooth. Sorry, I have no direct idea about this. Sharing bluetooth device files in Overall, for some things that need interaction with the host (maybe bluetooth pairing, too) it might help you to run a host terminal on the X server alongside the container applications. You can use e.g. |
Yep, ideally I'd have all 3 but file system is the most important one. Thank you so much, this has been really comprehensive help and I appreciate it! |
Hi! First of all, thanks for making and maintaining this so actively!
I'm looking to essentially run a typical Ubuntu desktop experience inside a container. I plan to use the host as a home server to run all sorts of things (administrated via a TTY), but I only have the one physical computer, so I need to run my workstation too. I could just run it in a VM but I only have a single GPU so I don't have the option of passing it through to the VM, meaning I wouldn't be able to play games.
My Dockerfile is essentially just:
The plan is to switch (using ctrl + alt + f1-12) to the "host" TTY when I want to do things on the server, and use the container TTY for my daily activities like games, web browsing, video conferencing. I mainly want to isolate IPC, file system, and network (on the host I will not run a VPN, but I wish to run a VPN in the desktop environment in the container) but it does not need to be secure (I'm just looking to prevent accidents/buggy code from messing things up on the host) Ideally usb devices (like plugging in a flash drive) should "just work" and not require rebooting or switching TTYs to the host.
I also wonder if Ubuntu's Snap will have issues with installing things since it abuses loopback devices to do so.. but this is not a deal breaker, in fact, I don't even need to be running Snap or Ubuntu, any popular distro made to work "out of the box" (Debian, Fedora, etc) will do.
The text was updated successfully, but these errors were encountered: