Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Docker 在centos7中,google chrome无法运行_Docker_Selenium Chromedriver_Google Chrome Headless - Fatal编程技术网

Docker 在centos7中,google chrome无法运行

Docker 在centos7中,google chrome无法运行,docker,selenium-chromedriver,google-chrome-headless,Docker,Selenium Chromedriver,Google Chrome Headless,操作系统:centos7(码头工人) 色度驱动器:2.34.522913 谷歌浏览器:谷歌浏览器63.0.3239.108 在使用selenium进行测试之前,我安装了chromedriver和google chrome stable 当我运行google chrome时,我收到了这条消息 以root身份运行而不使用--不支持任何沙盒。看 有人帮我吗?不要以root身份运行。我也尝试了使用not root。但您仍然得到“以root身份运行而不使用--不支持任何沙盒”?然后我收到了此消息无法移动到

操作系统:centos7(码头工人) 色度驱动器:2.34.522913 谷歌浏览器:谷歌浏览器63.0.3239.108

在使用selenium进行测试之前,我安装了chromedriver和google chrome stable

当我运行google chrome时,我收到了这条消息

以root身份运行而不使用--不支持任何沙盒。看


有人帮我吗?

不要以root身份运行。我也尝试了使用not root。但您仍然得到“以root身份运行而不使用--不支持任何沙盒”?然后我收到了此消息<代码>无法移动到新名称空间:支持PID名称空间,支持网络名称空间,但失败:errno=操作不允许跟踪/断点陷阱(内核转储)尝试更新到最新的Chrome&Chromedriver,以查看是否修复了它。如果失败,则添加--no sandbox选项以查看它是否在没有沙盒的情况下运行。这不是一个真正的解决方案,但可能会为您提供更多信息。