How to run google chrome headless in docker?

前端 未结 6 1596
栀梦
栀梦 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:06

    We built a Docker image with Chrome and Chromedriver that runs Chrome in headless mode for automated tests. We're using this as a drop-in replacement for PhantomJS in our docker-compose.yml setups. The image is based on Alpine Linux and doesn't need or include Selenium so it's pretty small.

    Source: https://github.com/retreatguru/headless-chromedriver

    Docker Hub: https://hub.docker.com/r/retreatguru/headless-chromedriver

提交回复
热议问题