rabin 7 years ago
parent
commit
609a795a06
2 changed files with 2 additions and 0 deletions
  1. 1 0
      src/docker/conf/py.conf
  2. 1 0
      src/tool/docker.py

+ 1 - 0
src/docker/conf/py.conf

@@ -23,6 +23,7 @@ port = 10001:8888,10002:8889
 #volumes = {container}conf/tool/jupyter:/root/.jupyter,{container}src/dmlearn:/src
 volumes = {container}src/dmlearn:/src,{container}src/shell/learning:/shell
 alias = python3->dmnotepy3,pip3->dmnote
+shm = 2g
 command = jupyter lab
 
 [phantomjs]

+ 1 - 0
src/tool/docker.py

@@ -418,6 +418,7 @@ class Container(object):
 			,'host' : '--add-host'
 			,'root' : '--privileged='
 			,'memory' : '--memory='
+			,'shm' : '--shm-size='
 			,'expose' : '--expose',
 		}
 	@staticmethod