How to run google chrome headless in docker?

前端 未结 6 1594
栀梦
栀梦 2020-12-13 08:35

My problem is how to run google chrome in docker container for e2e testing. I create a Dockerfile from official Jenkins image, but when try to run google chrome

6条回答
  •  情深已故
    2020-12-13 09:03

    This article is exactly what I needed to run Karma tests with Headless Chrome inside docker:

    https://hackernoon.com/running-karma-tests-with-headless-chrome-inside-docker-ae4aceb06ed3

    Basically, the solution is to run Headless Chrome with the --no-sandbox flag.

提交回复
热议问题