run.sh: add --shm-size arg to prevent frequent tab crashes.

I don't know if 256M is too big. However, I have confirmed that 128M is
not enough( still crashes ).

reference: https://github.com/pytorch/pytorch/issues/2244
This commit is contained in:
karubabu 2019-12-04 02:23:55 +09:00
parent e738e875bb
commit be00dd0b41
No known key found for this signature in database
GPG Key ID: DF1CCE7247A5B971
1 changed files with 1 additions and 0 deletions

1
run.sh
View File

@ -2,6 +2,7 @@
set -eux
docker run -ti --rm -e DISPLAY \
--cap-add=NET_ADMIN --device /dev/net/tun \
--shm-size 256M \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v `pwd`/openvpn:/etc/openvpn \
-v `pwd`/shared:/home/user/Downloads \