Linux - ContainersThis forum is for the discussion of all topics relating to Linux containers. Docker, LXC, LXD, runC, containerd, CoreOS, Kubernetes, Mesos, rkt, and all other Linux container platforms are welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a desktop PC with 64bit mint Linux which is set up to only boot to the basic console (not to the desktop). By typing 'startx' the desktop environment starts up running xfce. I know I'm old fashioned but I like it that way. Sometimes I want to do something that is strictly CLI.
I've added a container running a 32bit version of linux and using 'aptitude', installed 32bit xorg and 32bit linux mint. From the basic console I can start my container and attach to it but typing 'startx' fails. Xwindow complains that it could not find /dev/tty0. Sure enough, 'ls /dev' shows there is no tty0. there are other tty devices. As yet, I don't know enough about containers to know how to solve this. General internet searches have not provided an answer. xorg man pages don't suggest any way to designate a different option.
Thanks in advance for any information you can provide.
There are a few types of Linux containers. Which one did you use?
It should be possible to get the X server to launch from within a container, since there is no X server running already on the host.
However, it would be a trial-and-error process. You would try to startx, get an error, then solve the error. And continue trying.
/dev/tty0 is a character device.
If you are using LXD, you would need to share the host's /dev/tty0 to the container using a command like:
There are a few types of Linux containers. Which one did you use?
It should be possible to get the X server to launch from within a container, since there is no X server running already on the host.
However, it would be a trial-and-error process. You would try to startx, get an error, then solve the error. And continue trying.
/dev/tty0 is a character device.
If you are using LXD, you would need to share the host's /dev/tty0 to the container using a command like:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.