0

我正在尝试使用 Chromium 在 Docker中运行Canopy ,但出现此错误:

ChromeDriver was started successfully.
Connection refused Connection refused
  Error Message:
   OpenQA.Selenium.WebDriverException : unknown error: Chrome failed to start: exited abnormally.
  (unknown error: DevToolsActivePort file doesn't exist)
  (The process started from chrome location /usr/bin/chromium is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

当我手动尝试使用 Docker 并启动 Chromium 时,我收到此错误:

No usable sandbox! If this is a Debian system, please install the chromium-sandbox package to solve this problem. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.

由于我控制网站和内容,我认为使用没有风险,--no-sandbox但是我找不到将此标志提供给 Canopy 的方法。

我怎样才能提供这个标志或让 Chromium 以其他方式在 Docker 中运行?

4

0 回答 0