chrome-in-docker icon indicating copy to clipboard operation
chrome-in-docker copied to clipboard

on some Linux systems, may need bind mount /dev/shm

Open c0b opened this issue 9 years ago • 3 comments

on some Linux systems, sometimes see Chrome browser may crash one page or two, seems happening randomly, not exactly sure why some page works some not, but since I know Chrome on Linux using a lot of large page memory mapping, which is a tmpfs mounting on /dev/shm on some Linux variants, and it depends on which Linux, the docker run instance may use the default 64MB, that may not be enough in some cases, you may set a different --shm-size 1024MB or just share /dev/shm from host by -v /dev/shm:/dev/shm on docker run lines

$ docker run --help | grep shm
      --shm-size string             Size of /dev/shm, default value is 64MB
$ df -Th /dev/shm
Filesystem     Type   Size  Used Avail Use% Mounted on
tmpfs          tmpfs  3.9G  231M  3.7G   6% /dev/shm

c0b avatar Aug 18 '16 06:08 c0b

This should be fixed as of Chrome 64.0.3281.0 see https://bugs.chromium.org/p/chromium/issues/detail?id=736452#c33

paulirish avatar Nov 30 '17 21:11 paulirish

@paulirish Do you happen to know if there is a build of 64.0.3281.0 available somewhere for testing? (No success here: https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Linux_x64/) Thx!

apawson avatar Dec 07 '17 01:12 apawson

@apawson You can find out the revision number here - http://omahaproxy.appspot.com/

paambaati avatar Dec 13 '17 08:12 paambaati