title: How to set --shm-size configuration for Puppeteer
body: <p>I have the same error as in <a href="https://github.com/GoogleChrome/puppeteer/issues/1175" rel="nofollow noreferrer">this</a> thread. The solution is to set <code>--shm-size=1gb</code>. 
  From the Puppeteer docs, I found the following notes: </p>
  
  <pre><code>By default, Docker runs a container with a `/dev/shm` shared memory space 64MB.
  This is [typically too small](https://github.com/c0b/chrome-in-docker/issues/1) for Chrome 
  and will cause Chrome to crash when rendering large pages. To fix, run the container
  with `docker run --shm-size=1gb` to increase the size of `/dev/shm`. Since Chrome 65, 
  this is no longer necessary. Instead, launch the browser with the `--disable-dev-shm-usage` 
  flag
  </code></pre>
  
  <p>I've tried the following code but with no success: </p>
  
  <pre><code>const args = [`--app=${url}`, `--window-size=${WIDTH},${HEIGHT}`, '--disable-dev-shm-usage'];
  const browser = await puppeteer.launch({
      headless,
      args
  });
  </code></pre>
  
  <p>How to propperly set --shm-size for the Puppeteer?</p>
  
  <pre><code>Node version: 8.9.3
  Platform: Windows 10
  </code></pre>