question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Chrome on windowsservercore?

See original GitHub issue

I’d like to automate some web testing with selenium/chromedriver/chrome using windowsservercore containers. It seems it should be possible to run chrome in headless mode but I’m not having any luck.

I was hoping you might have an image/dockerfile I could use but it doesn’t appear so. Is this something which isn’t possible with Windows Containers?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mirecadcommented, Jul 18, 2019

@StefanScherer Yes, windowsservercore image on Windows 10 machine. Whole dockerfile is mentioned in my comment. BTW: We were able to run this container only on Windows 10. We tried also Windows Server Core 1803 as host, but without any luck.

1reaction
mirecadcommented, Jul 17, 2019

I was able to run selenium in windows containers. This works on my development Windows 10 machine. Rigth now I am struggling to run this on Windows server core 1803 host.

FROM openjdk:windowsservercore-1803

WORKDIR /app

COPY ./selenium-server-standalone-3.141.59.jar ./

COPY ./chromedriver.exe ./

COPY ./ChromeSetup.exe ./

RUN .\ChromeSetup.exe /silent /install

EXPOSE 4444

CMD [ "java -jar ./selenium-server-standalone-3.141.59.jar"]
Read more comments on GitHub >

github_iconTop Results From Across the Web

Chrome on Windows docker container is not working
I'm trying to run Google Chrome on a docker container. This docker container is based on the microsoft/windowsservercore:ltsc2016 . I want to use...
Read more >
Do Windows containers support running Selenium-based ...
Specifically, I've been trying to run automated tests in headless Chrome on a microsoft/windowsservercore:latest image, but the automation ...
Read more >
Install Microsoft Edge Chromium on Windows Server Core
Home Blog Install Microsoft Edge Chromium on Windows Server Core. 4sysops - The online community for SysAdmins and DevOps.
Read more >
Chrome Installation could not be found in docker image based ...
Description Chrome does not seem to be installed even though ... Step 1/16 : FROM openjdk:windowsservercore-1803 ---> ff52812f16b8 Step 2/16 ...
Read more >
Install Chrome in Windows Server using Powershell - Snel.com
Follow these easy steps to install chrome which will be much easier to browse with instead of Internet Explorer.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found