title: What is the Firefox Gecko equivalent to Chrome's --disable-dev-shm-usage flag
body: <p>Docker environment: Docker Container, ubuntu:18.10, geckodriver-v0.23.0-linux64, selenium-3.14.1</p>
  
  <p>In Chrome, I did not have enough resources allocated to my Docker Container. Adding the "<a href="https://github.com/GoogleChrome/puppeteer/blob/v1.0.0/docs/troubleshooting.md#tips" rel="noreferrer">--disable-dev-shm-usage</a>" flag to Chrome fixed the issue. Since its using local /tmp instead of it's /dev/shm it has plenty of room.</p>
  
  <p>Now I need to fix the same issue for the Geckodriver.  I can't find documentation for Geckodriver's equivalent flag to "--disable-dev-shm-usage".</p>
  
  <p>Does anyone know if there is an equivalent and/or what it is? Alternate ideas welcome.</p>
  
  <p>Edit: Adding error messages:</p>
  
  <p>I’m taking screenshots of specific elements on some very large webpages.  Sometimes 200 images.</p>
  
  <p>.</p>
  
  <pre><code>My Warning: Could not create image for ".thumbnail_none &gt; .item-label-href[rel="nofollow"][target="_blank"] &gt; .video-label-box &gt; .branding" because:
  Message: Browsing context has been discarded
  
  My Warning: Could not create image for".thumbnail_none &gt; .item-label-href[rel="nofollow"][target="_blank"] &gt; .video-label-box &gt; .branding" because:
  Message: [Exception... "Failure"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: chrome://marionette/content/browser.js :: get rect :: line 254"  data: no]
  
  My Warning: Could not create image for".active___2c4EX &gt; .content___1UWin &gt; .duration___fewg4" because:
  Message: Browsing context has been discarded
  
  My Warning: Could not create image for".article___1MtWi:nth-child(2) &gt; .teaseCard &gt; .think-module.teaseCard__picture &gt; .eyebrow___3eQZ6.ph4-m.pt4 &gt; .vilynx_listened &gt; span" because:
  Message: Failed to decode response from marionette
  
  My Warning: Could not create image for".article___1Fn4y:nth-child(1) &gt; .content___2Wmo9.teaseCard &gt; .think-module.teaseCard__picture &gt; .eyebrow___3eQZ6.ph4-m.pt4 &gt; .vilynx_listened &gt; span" because:
  Message: Tried to run command without establishing a connection
  </code></pre>
  
  <p>All messages after that repeat every time the function that looks for the selector to make the image is called:</p>
  
  <pre><code>My Warning: Could not create image for"div[observeid="tbl-observe-1"] &gt; .item-label-href[rel="nofollow"][target="_blank"] &gt; .trc-main-label.video-label-box &gt; .branding" because:
  Message: Tried to run command without establishing a connection
  
  Warning: Could not create image for".videoCube_2_child &gt; .item-label-href[rel="nofollow"][target="_blank"] &gt; .trc-main-label.video-label-box &gt; .branding" because:
  Message: Tried to run command without establishing a connection
  
  Warning: Could not create image for".videoCube_3_child &gt; .item-label-href[rel="nofollow"][target="_blank"] &gt; .trc-main-label.video-label-box &gt; .branding" because:
  Message: Tried to run command without establishing a connection
  </code></pre>
  
  <p>Additional tracebacks for Chromedriver can be found in another unanswered question I have: <a href="https://stackoverflow.com/questions/53416143/why-would-using-selenium-webdriver-to-execute-js-fine-locally-on-my-mac-but-not">Why would using Selenium webdriver to execute JS fine locally on my Mac, but not in a Docker container?</a></p>
  
  <p>Adding "--disable-dev-shm-usage" does fix that question for Chomedriver, but I wanted to get an answer to the Geckodriver before I self answer.  Feel free to answer that one if you have the answer. I will test and mark your answer as correct.</p>
  
  <p>They are separate questions because I don't know 100% that they are the same issue.</p>
  
  <p>Edit: Removed one unrelated stacktrace</p>