Xorg Installation Broken Under Docker

Home » CentOS » Xorg Installation Broken Under Docker
CentOS 5 Comments

Hi,

I have been trying to build a docker image to run unit tests for the B2G project [1]. However when I try to install Xorg I get this error [2]. I have been searching on web but is still not clear for me if this is an issue or if I should proceed like this link [3] says. Any idea?

Cheers, Wander.

[1] https://wiki.mozilla.org/B2G
[2] https://pastebin.mozilla.org/7243239
[3] jperrin.github.io/CentOS/2014/09/25/CentOS-docker-and-systemd/

5 thoughts on - Xorg Installation Broken Under Docker

  • Yes, one of the packages you’re attempting to install requires systemd as a dependency and so you would need to follow the instructions in that blog. You might still run into some issues even then, if you’re trying to display X from the container on the host.

    If you’d like, I have a CentOS-systemd container already built
    (following that blog post) that you could try.

    a ‘docker pull CentOS/c7-systemd’ should get you what you need:

    reference url: https://registry.hub.docker.com/u/CentOS/c7-systemd/

  • We need to get systemd-container into the default CentOS image. We are working on this for RHEL7 also. That way these problems can be prevented and we can make it easier for people to run systemd within a container.

  • If the source for it is public, I would happily do this, as the current systemd/fakesystemd issue causes a fair amount of breakage. Where can I
    pull systemd-container source/spec?