Selenium server works with Docker on MacOS but not on Jenkins

I have a Selenium server image that I use with Docker as part of our test process:

FROM selenium/standalone-firefox:3.4.0-chromium

this work locally on MacOS, but when I run this Docker container on Jenkins (linux-gnu), then Selenium doesn’t seem to work.

  • UDP packets aren't forwarded to Node Application inside of docker container
  • When we execute docker run ubuntu:14.04 ps ax, where does ps ax command runs?
  • Protractor in a Docker container - Wait for full page to load
  • Running nginx-proxy in docker with ssl
  • How do i get postgres data to persist using docker-compose
  • Docker containers experiencing socket issue (separate Flask + Nginx containers)
  • My only guess is that only a headless browser can work on Jenkins.

    Does anyone know what I can do to only run a headless browser with Selenium? I am not sure if this makes sense…but I am trying to figure out why requests to Selenium server completely timeout on Jenkins, and I believe because barebones Linux cannot run non-headless browsers.

  • Error pushing docker image to dockerhub using gradle
  • How to connect to Postgresql service inside Docker Swarm?
  • Docker OSX - Unable to access container on port 8080
  • Can a Docker Task in a Swarm know which instance number or how many total instances there are?
  • Cannot login to docker container registry which is inside docker container
  • How to setup ASP.NET Web Application with Docker container
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.