ABORT:X_ShmPutImage:尝试在docker中运行firefox时的BadValue

我正在练习书第4章中的技巧26。

以下是我的Dockerfile

FROM ubuntu:latest RUN apt-get update && apt-get install -y firefox RUN groupadd -g 1000 abc RUN useradd -d /home/abc -s /bin/bash -m abc -u 1000 -g 1000 USER abc ENV HOME /home/abc CMD /usr/bin/firefox 

然后我运行下面的命令来执行docker,我希望firefox打开成功,但我得到下面的错误。 我正在使用Fedora 26。

 $ docker run -v /tmp/.X11-unix:/tmp/.X11-unix -v \ $HOME/.Xauthority:/home/$USER/.Xauthority -h $HOSTNAME -e \ DISPLAY=$DISPLAY gui [Parent 5] ###!!! ABORT: X_ShmPutImage: BadValue (integer parameter out of range for operation); 2 requests ago: file /build/firefox-S0wyi8/firefox-55.0.2+build1/toolkit/xre/nsX11ErrorHandler.cpp, line 147 [Parent 5] ###!!! ABORT: X_ShmPutImage: BadValue (integer parameter out of range for operation); 2 requests ago: file /build/firefox-S0wyi8/firefox-55.0.2+build1/toolkit/xre/nsX11ErrorHandler.cpp, line 147 ExceptionHandler::GenerateDump cloned child 99 ExceptionHandler::SendContinueSignalToChild sent continue signal to child ExceptionHandler::WaitForContinueSignal waiting for continue signal... 

Fedora 26主机有什么不同吗?