Skip to content

Commit 3807473

Browse files
committed
fix: pass --no-sandbox by default to Chromium
We see a lot of issues with users struggling with Chromium sandboxing. We tried fighting these with Docker configs, but it requires running Docker with special seccomp profile. As a result, majority ends up using `--no-sandbox` anyway. This patch saves our users a hassle and starts using `--no-sandbox` by default. References microsoft#2745
1 parent 91e1a25 commit 3807473

File tree

3 files changed

+2
-1540
lines changed

3 files changed

+2
-1540
lines changed

docs/docker/README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,10 @@ $ docker pull mcr.microsoft.com/playwright:bionic
3131
### Run the image
3232

3333
```
34-
$ docker container run -it --rm --ipc=host --security-opt seccomp=chrome.json mcr.microsoft.com/playwright:bionic /bin/bash
34+
$ docker container run -it --rm --ipc=host mcr.microsoft.com/playwright:bionic /bin/bash
3535
```
3636

3737
Note that:
38-
39-
* The seccomp profile is required to run Chrome without sandbox. Thanks to [Jessie Frazelle](https://github.com/jessfraz/dotfiles/blob/master/etc/docker/seccomp/chrome.json).
4038
* Using `--ipc=host` is also recommended when using Chrome ([Docker docs](https://docs.docker.com/engine/reference/run/#ipc-settings---ipc)). Chrome can run out of memory without this flag.
4139

4240
### Using on CI

0 commit comments

Comments
 (0)