docs: Recommend using --ipc=host in docker (#2038)

This commit is contained in:
Steve Davis 2020-04-29 17:52:50 -04:00 committed by GitHub
parent 3a29631e9f
commit 4652b9e248
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,9 +13,10 @@ $ sudo docker build -t microsoft/playwright:bionic -f Dockerfile.bionic .
Running image:
```
$ sudo docker container run -it --rm --security-opt seccomp=chrome.json microsoft/playwright:bionic /bin/bash
$ sudo docker container run -it --rm --ipc=host --security-opt seccomp=chrome.json microsoft/playwright:bionic /bin/bash
```
> **NOTE**: The seccomp profile is coming from Jessie Frazelle. It's needed
> to run Chrome without sandbox.
> Using `--ipc=host` is also recommended when using Chrome. Without it Chrome can run out of memory and crash.
> [See the docker documentation for this option here.](https://docs.docker.com/engine/reference/run/#ipc-settings---ipc)