我正在尝试为需要文件系统权限的Jupyter/scipy-notebook运行docker容器。
我尝试从documentation
设置一些选项docker run -p 8888:8888 -v $ML_PATH:/home/jovyan/work -e CHOWN_HOME=yes -e CHOWN_HOME_OPTS='-R' jupyter/scipy-notebook
我收到以下错误:
Saving figure money_happy_scatterplot
---------------------------------------------------------------------------
PermissionError Traceback (most recent call last)
<ipython-input-15-299e2f165cf4> in <module>
15 plt.plot(pos_data_x, pos_data_y, "ro")
16 plt.xlabel("GDP per capita (USD)")
---> 17 save_fig('money_happy_scatterplot')
18 plt.show()
编辑:以下命令有效,但是我无法从主机保存文件。
docker run -p 8888:8888 -v $ML_PATH:/home/jovyan/work -e CHOWN_HOME=yes -e CHOWN_HOME_OPTS='-R' --user root jupyter/scipy-notebook
答案 0 :(得分:0)
docker run -p 8888:8888 -v $ ML_PATH:/ home / jovyan / work --user 1001 --group-add用户jupyter / scipy-notebook