From 4652b9e2483209e963c10111d26b79f8fb06d92d Mon Sep 17 00:00:00 2001 From: Steve Davis Date: Wed, 29 Apr 2020 17:52:50 -0400 Subject: [PATCH] docs: Recommend using --ipc=host in docker (#2038) --- docs/docker/README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/docker/README.md b/docs/docker/README.md index 90cdcdae08..0024c651f2 100644 --- a/docs/docker/README.md +++ b/docs/docker/README.md @@ -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. - +> 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)