使用Docker for Mac和X11绑定运行GUI应用程序
我正在尝试运行Docker容器,需要与Docker for Mac的GUI。 我遵循本指南 ,MacOS 10.12.3,Docker for Mac 17.03.0-ce和XQuartz 2.7.11。
但是,当我运行docker run -d --name firefox -e DISPLAY=$ip:0 -v /tmp/.X11-unix:/tmp/.X11-unix jess/firefox
,没有任何反应, docker logs
给出以下,
(firefox:1): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale. libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast ExceptionHandler::GenerateDump cloned child 16 ExceptionHandler::SendContinueSignalToChild sent continue signal to child ExceptionHandler::WaitForContinueSignal waiting for continue signal...
有没有人有这个问题的经验? 我在网上查了一下,发现还没解决。
先谢谢你。