Selenium: pass -no-sandbox to Chrome under Docker
authorAntoine Musso <hashar@free.fr>
Thu, 12 Apr 2018 12:02:40 +0000 (14:02 +0200)
committerAntoine Musso <hashar@free.fr>
Thu, 12 Apr 2018 12:26:13 +0000 (14:26 +0200)
commit4ff5652501b6cd1467072290b61241a559a48844
treeeecd4a6fae2f49b8dbc69192cd102e73d47a7518
parent4e7673c5b0aa1d53e69c850ccc58446abf29b3d5
Selenium: pass -no-sandbox to Chrome under Docker

When running webdriver.io in a Jessie Docker container, the sandboxing
fails:

  Failed to move to new namespace: PID namespaces supported, Network
  namespace supported, but failed: errno = Operation not permitted

Detect whether we are in a Docker container by checking /.dockerenv and
if present append --no-sandbox to Chrome options.

Change-Id: Ie5c276d12553e4473c01b3407e0f7622e0a678e0
tests/selenium/wdio.conf.js