Running GUI during docker build

2019-09-10 09:46发布

From this other question about docker, I've thought about a new question: is it possible to run a "gui app", and interact with it, during a docker mean?

The context is: in Dockerfile, you define a RUN command to exec a GUI installer (in that question, it was qt-android), and then, when you build image, it does not work, because it can't connect to display.

标签: docker
2条回答
别忘想泡老子
2楼-- · 2019-09-10 10:33

Hm, thanks man... I see now that my question somewhat gone differently that I thought, but let's go: in fact, it's possible run containers with GUI, but, during build process of a container image, is it possible to run a GUI app and interact with (for, as an example, a GUI installer of an app)...

查看更多
Viruses.
3楼-- · 2019-09-10 10:38

Yes it is. On Linux there are various techniques (mostly involving binding / forwarding the X11 socket). Check out some of Jessie Frazelle's Dockerfiles.

查看更多
登录 后发表回答