Tag:

在容器中运行Chromium:Error = seccomp-bpf在系统调用0241中失败

我试图在docker集装箱内运行Chromium。 当我尝试使用以下标志运行它时,输出如下: –type =渲染器 –window位= 100100 –window尺寸= 800800 所以这是我使用–type=renderer时候得到的结果。 在互联网上找不到与此错误相关的任何内容。 这是什么输出? 我应该从哪里开始寻求解决这个问题? 或者您可能以前遇到过这个问题,并有解决办法。 当我不使用任何国旗,除了2)和3)我得到的是一个空的,完全白色的窗口。

OSError:在Docker容器中使用python运行selenium时

我最近学习了Docker的基础知识,以及如何创build和运行图像。 我正在尝试创build一个python脚本的图像,这个脚本会将一些数据页面抓取并上传到服务器。 我使用Selenium,Chromium和Windows chromedriver。 我试图在我的Windows机器上构build映像,并能够将它部署在一堆Linux / Windows服务器上。 目前,我只是在同一个Windows机器上构build和运行,直到我运行,但是我仍然得到相同的错误,即使脚本直接在机器上运行。 这是错误的: Traceback (most recent call last): File "my-app.py", line 796, in <module> startScraper(); File "my-app.py", line 92, in startScraper browser = webdriver.Chrome(chrome_options = options, executable_path = path_to_chromedriver); File "/usr/local/lib/python3.6/site-packages/selenium/webdriver/chrome/webdriver.py", line 62, in __init__ self.service.start() File "/usr/local/lib/python3.6/site-packages/selenium/webdriver/common/service.py", line 74, in start stdout=self.log_file, stderr=self.log_file) File "/usr/local/lib/python3.6/subprocess.py", line 707, in […]

获取错误铬不可从docker到达

我正试图从一个python应用程序的铬上运行seleniumtesting。 这工作正常,如果我在独立的python服务器上运行。 当我创buildDocker镜像并尝试从那里执行时,我得到一个这样的错误 2017-10-03 21:18:49 – DEBUG :: Thread-1 : Error occured: Message: chrome not reachable (Driver info: chromedriver=2.32.498513 (2c63aa53b2c658de596ed550eb5267ec5967b351),platform=Linux 4.4.84-boot2docker x86_64) 。 我看到了几个关于SO的答案,这些答案build议将–no-sandbox and –disable-setuid-sandbox参数添加到chrome选项,但是当我尝试运行映像时仍然遇到该错误。 options = webdriver.ChromeOptions() options.binary_location = '/app/webdrivers/linux/32/chromedriver' #options.add_argument('headless') options.add_argument('–no-sandbox') options.add_argument("–disable-setuid-sandbox") #options.add_argument('window-size=1200×600') driver = webdriver.Chrome(chrome_options=options) 我已经安装了铬驱动程序,它的存在于我的泊坞窗应用程序文件夹中,并且我已经复制到/usr/bin和/usr/local/bin只是为了看看是否能解决我的问题。 任何帮助,高度赞赏。 谢谢 !!

docker工人正式build造(docker:最新)与chromiuim

我一直在试图在最后两天得到chromuim安装和运行在docker:最新的docker图像。 (在docker的docker)。 我已经尝试了多个docker文件: from docker:latest RUN apk add –no-cache python py2-pip curl bash chromuim ttf-freefont xvfb nodejs nodejs-npm udev RUN curl -sSL https://sdk.cloud.google.com | bash ENV PATH $PATH:~/google-cloud-sdk/bin RUN pip install docker-compose RUN npm install -g @angular/cli swagger ENV CHROME_BIN=/usr/bin/chromium-browser 这安装了铬57,不支持无头。 所以我怀疑我可以用xvbf运行这个,但是运行这个chrome失败: Failed to move to new namespace: PID namespaces supported, Network namespace supported, but […]

如何创build一个基本的CoreOS图像,并基于它build立自定义父图像

目前, https: //registry.hub.docker.com/上的大多数docker镜像都是基于ubuntu的。 然而,我想要运行一个稍微精简的基本映像,即CoreOS。 而不是在它上面build立定制的包/图像,即erlang和雅司。 有没有一些简单或标准的方法来做到这一点? 使用cros_sdk我可以修改一个图像,但我不确定是否可以创build几个额外的gentoo包并将它们打包为父图像。 我想我可以以某种方式将上游portage树放入CoreOS开发环境/ chroot,出现我需要的软件包并将二进制软件包导入到一个新的父图像。 有没有说明如何做到这一点?

套餐“铬浏览器”没有安装候选人

我正尝试在一个docker镜像中安装chrome浏览器 RUN apt-get install chromium-browser 但我得到的错误: Package chromium-browser is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'chromium-browser' has no installation candidate 如何在docker镜像中正确安装chromium ?

在容器中运行Chromium:libGl错误

我试图在docker集装箱内运行Chromium。 这是我得到的输出: Created new window in existing browser session. libGL error: failed to open drm device: No such file or directory libGL error: failed to load driver: vmwgfx 我在网上search了很多有关这个问题,但找不到任何明确的。 你有什么build议,我该如何解决这个问题? 先谢谢你。

在Docker中运行Chromium – Gtk:无法打开显示:: 0

当我尝试运行docker容器中的铬时,我看到以下错误:Gtk:can not open display :: 0 Dockerfile :(基于https://registry.hub.docker.com/u/jess/chromium/dockerfile ) FROM debian:jessie # Install Chromium RUN sed -i.bak 's/jessie main/jessie main contrib non-free/g' /etc/apt/sources.list && \ apt-get update && apt-get install -y \ chromium \ chromium-l10n \ libcanberra-gtk-module \ libexif-dev \ libpango1.0-0 \ libv4l-0 \ pepperflashplugin-nonfree \ –no-install-recommends && \ mkdir -p /etc/chromium.d/ # Autorun x11vnc […]

Webdriverexception:“chrome not reachable”

我在ubuntu服务器上运行seleniumtesting用例,这个服务器基本上在firefox和chrome中运行testing用例。 Firefox启动并且testing用例运行成功,但是chrome抛出exception: *****下面是stacktrace的片段:***** 在端口21549上启动ChromeDriver(v2.8.240825) PAC支持被禁用,因为没有系统实现 testingIntegrationTest.AdminUserelementscheck失败: org.openqa.selenium.WebDriverException:chrome not reachable(驱动程序信息:chromedriver = 2.8.240825,platform = Linux 2.6.32-431.el6.x86_64 x86_64)(警告:服务器没有提供任何堆栈跟踪信息)[error]命令持续时间或超时时间:20.83秒 嗨下面是我的代码的小片段: public class IntegrationTest { private static final String configFile="test.properties"; private final String FIREFOX="firefox"; private final String CHROME="chrome"; private final String PHANTOMJS="phantomjs"; private final String BROWSERNAME="browser"; private static Properties props = new Properties(); public WebDriver webDriver; private static Configuration additionalConfigurations; […]