Support launching in Docker
See original GitHub issueWe have a CI environment at my company that does not have chrome nor allows apt-get install
on our machines, but docker is available for better isolation of these dependencies, but I see no documentation or support for Docker. This would be greatly appreciated. I’m trying to get a shell script put together that can achieve this by passing in as a CHROME_PATH
, which may be the best, most unobtrustive way to support it. I’m struggling to get it working though 😕
Issue Analytics
- State:
- Created 6 years ago
- Comments:13
Top Results From Across the Web
How to automatically start a service when running a docker ...
Just put it alongside your Dockerfile. Then in your Dockerfile you should have an instruction that copies this file to the desired location....
Read more >Get support
Docker offers support for developers subscribed to a Pro, Team, or a Business tier. ... Installation crashes; Failure to launch Docker Desktop on...
Read more >Containerize an application
Start your container using the docker run command and specify the name of the image you just created: $ docker run -dp 3000:3000...
Read more >Quick Start Guide and sign in | Docker Documentation
Go to the Docker Desktop menu and then select Sign in / Create Docker ID. · Enter your Docker ID and password and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I struggled with the relevant issue for a while.
This is my code to launch Chrome in headless mode in Docker.
Then I got this error.
I tried to use puppeteer workaround that @jakelacey2012 suggested. But actually that won’t work for me.
I could solve this problem by adding
--no-sandbox
flag aschromeFlags
in the launch option.I hope this workaround is still safe for most of CI use case.
@kyasbal-1994 the lighthouse-ci docs have a decent explanation of the tradeoffs involved in
--no-sandbox
and the different workarounds.