How to edit pass a flag (--ipc=host) to docker run -d -p in azure pipeline? How to edit pass a flag (--ipc=host) to docker run -d -p in azure pipeline? docker docker

How to edit pass a flag (--ipc=host) to docker run -d -p in azure pipeline?


There's one discussion about this topic in Github, adding --ipc=host or increasing /dev/shm size for container seems not to be one good choice for CI system.

Starting Chrome with --disable-dev-shm-usage could be one fix for this issue during CI. Since the fix from cypress has not been released, you can track the #5336 to get notifications if there's any update. And here's one workaround from flogwig which may help:

Modify Chrome flags by adding this in pluginsfile:

module.exports = (on, config) => {  on('before:browser:launch', (browser = {}, args) => {    if (browser.family === 'chrome') {      console.log('Adding --disable-dev-shm-usage...')      args.push('--disable-dev-shm-usage')    }    return args  })}