Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-13622

Chrome fails in Pipelines because docker images aren't run with "--privileged" flag

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Please add a setting in bitbucket-pipelines.yml to allow docker images to be started with the "--privileged" flag.

      Privileged flag allow to run selenium with chrome without crashing. It crashes without privileged mode due to sandboxing and using same container as docker container in linux.

            [BCLOUD-13622] Chrome fails in Pipelines because docker images aren't run with "--privileged" flag

            Attachment 1343478099-Screen%20Shot%202019-06-28%20at%205.11.02%20PM.png has been added with description: Originally embedded in Bitbucket issue #13622 in site/master

            balinder singh added a comment - Attachment 1343478099-Screen%20Shot%202019-06-28%20at%205.11.02%20PM.png has been added with description: Originally embedded in Bitbucket issue #13622 in site/master

            Attachment 2220861039-Screen%20Shot%202019-06-28%20at%205.12.12%20PM.png has been added with description: Originally embedded in Bitbucket issue #13622 in site/master

            balinder singh added a comment - Attachment 2220861039-Screen%20Shot%202019-06-28%20at%205.12.12%20PM.png has been added with description: Originally embedded in Bitbucket issue #13622 in site/master

            Is anybody still seeing this issue? I am able to run my selenium solution fine in Docker locally but when I run it in pipeline it crashes.


            here’s my code. I am adding the sandbox flag as well

            balinder singh added a comment - Is anybody still seeing this issue? I am able to run my selenium solution fine in Docker locally but when I run it in pipeline it crashes. here’s my code. I am adding the sandbox flag as well

            Just to show it off: It is possible to use chrome headless without --privileged flag. I have an image available, if anyone is searching for an answer here: https://github.com/SimonSimCity/bitbucket-meteor-headless-browsers

            Simon Schick added a comment - Just to show it off: It is possible to use chrome headless without --privileged flag. I have an image available, if anyone is searching for an answer here: https://github.com/SimonSimCity/bitbucket-meteor-headless-browsers

            Matt Ryall added a comment -

            Hi Badal, we had a few customers notice this problem and there's a simple workaround by using the --no-sandbox flag when running Chrome to disable its sandboxing.

            Can you please try this and let us know if it fixes the problem for you?

            Matt Ryall added a comment - Hi Badal, we had a few customers notice this problem and there's a simple workaround by using the --no-sandbox flag when running Chrome to disable its sandboxing. Can you please try this and let us know if it fixes the problem for you?

              Unassigned Unassigned
              2bb5b0fd3f02 bdesaihmh
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: