Running Chrome Headless, Selenium and Capybara inside GitLab CI and Docker Selenium + Chrome Headless fail with mysterious errors when run in GitLab CI and Docker. Here's why, and also how we fixed it.