dockerfiles icon indicating copy to clipboard operation
dockerfiles copied to clipboard

jess/firefox: tab crashes due to small /dev/shm

Open mviereck opened this issue 6 years ago • 2 comments

The recent jess/firefox regulary has tab crashes. This can be reproduced e.g. with youtube videos.

This has been fixed once with https://github.com/jessfraz/dockerfiles/pull/429 that configures browser.tabs.remote.autostart = false. This fix does not help anymore, though.

I found three solutions:

  • recommended: --shm-size=4G, found here: https://github.com/D4Delta/firefox-stable
  • discouraged: --ipc=host https://github.com/jessfraz/dockerfiles/issues/360
  • discouraged: --volume /dev/shm:/dev/shm

Afaik the default size of /dev/shm in Docker containers is 64MB. But firefox needs much more than that.

mviereck avatar Jul 23 '19 13:07 mviereck

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.99. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

issue-label-bot[bot] avatar Jul 23 '19 13:07 issue-label-bot[bot]

My previously recommended solution --shm-size=4G does not work anymore.

I am using --tmpfs /dev/shm now.

mviereck avatar Nov 29 '19 18:11 mviereck