在Docker构建期间运行GUI [英] Running GUI during docker build

查看:57
本文介绍了在Docker构建期间运行GUI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

来自关于Docker的另一个问题,我想到了一个新问题:是否可以在Docker期间运行"gui应用"并与其进行交互?

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?

上下文是:在Dockerfile中,您定义了一个RUN命令来执行GUI安装程序(在该问题中,它是qt-android),然后在构建映像时它不起作用,因为它不能连接到显示器.

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.

推荐答案

是的.在Linux上,有多种技术(主要涉及绑定/转发X11套接字).查看 Jessie Frazelle的Dockerfiles .

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

这篇关于在Docker构建期间运行GUI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆