I am running docker version 1.5.0 on centos 6.6 under vmware workstation.
I am running a wordpress container, and everything works fine until I reboot my vmware vm.
If I set the docker container to --restart=always, then Xwindows crashes on startup with these errors:
36.541] (--) Depth 24 pixmap format is 32 bpp
[ 36.541] (II) vmware(0): Initialized VMWARE_CTRL extension version 0.2
[ 36.541] (II) vmware(0): Initialized VMware Xinerama extension.
[ 36.541] (II) vmware(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0
[ 36.541] (EE) vmware(0): Unable to map mmio BAR. Read-only file system (30)
[ 36.665] (EE) vmware(0): Unable to map frame buffer BAR. Read-only file system (30)
[ 36.665] (EE)
[ 36.665] (EE) Backtrace:
[ 36.665] (EE) 0: /usr/bin/Xorg (xorg_backtrace+0x51) [0x5aae11]
[ 36.665] (EE) 1: /usr/bin/Xorg (0x400000+0x1af209) [0x5af209]
[ 36.665] (EE) 2: /lib64/libpthread.so.0 (0x369a000000+0xf710) [0x369a00f710]
[ 36.665] (EE) 3: /lib64/libc.so.6 (0x3699c00000+0x8431b) [0x3699c8431b]
[ 36.665] (EE) 4: /usr/lib64/xorg/modules/drivers/vmware_drv.so (0x7f69e0fa1000+0x5b93) [0x7f69e0fa6b93]
[ 36.665] (EE) 5: /usr/bin/Xorg (AddScreen+0xa9) [0x432579]
[ 36.665] (EE) 6: /usr/bin/Xorg (InitOutput+0x3c9) [0x47df19]
[ 36.665] (EE) 7: /usr/bin/Xorg (0x400000+0x3c6b3) [0x43c6b3]
[ 36.665] (EE) 8: /lib64/libc.so.6 (__libc_start_main+0xfd) [0x3699c1ed5d]
[ 36.665] (EE) 9: /usr/bin/Xorg (0x400000+0x269c9) [0x4269c9]
[ 36.665] (EE)
[ 36.665] (EE) Segmentation fault at address 0x0
If the container is not set to auto restart, X starts fine.
If I set docker to not start up via chkconfig, reboot the machine, and then start docker, the container auto starts.
I tried disabling the VMWare tools and the vmware-tools-thinprint services
Any insight into this would be appreciated.
I have performed a yum update, and this didn’t help.
The obvious thing seems to be to delay the docker container from starting until after X finishes initializing, but since X starts after all the /etc/init.d scripts load, I don’t see how to do that, unless I install something like supervisor.