具有自定义单用户映像的Jupyterhub为'/ home / jovyan / work'引发'没有这样的文件或目录'

时间:2018-07-01 05:02:01

标签: jupyter-notebook jupyter pytorch jupyterhub

我尝试使用此仓库作为映像https://github.com/stepankuzmin/pytorch-notebook来设置Jupyterhub来为Jupyter pytorch笔记本提供服务,该映像也可以作为dockerhub上的Docker映像https://hub.docker.com/r/stepankuzmin/pytorch-notebook/使用。

这涉及修改config.yml文件以指向该映像,例如:

singleuser: image: name: stepankuzmin/pytorch-notebook tag: latest

我得到:

oci runtime error: container_linux.go:247: starting container process caused \"chdir to cwd (\\\"/home/jovyan/work\\\") set in config.json failed: no such file or directory

1 个答案:

答案 0 :(得分:0)

已解决。

经过大量的搜索,我偶然发现了这一点:https://github.com/jupyterhub/jupyterhub/issues/1425。来自此的摘要是线程,由于以下原因可能会发生错误: *您正在构建的单用户jupyterhub映像不符合要求 *您正在基于单用户jupyter的旧基础图像构建单用户jupyterhub图像

我继续进行下去的唯一方法是构建自己的单用户jupyterhub pytorch jupyter笔记本图像,该图像现在可以在这里找到:https://hub.docker.com/r/nethsix/pytorch-notebook/

回购是:https://github.com/nethsix/pytorch-notebook

我使用repo2docker构建了映像,如此处所述:http://zero-to-jupyterhub.readthedocs.io/en/latest/user-environment.html#build-a-custom-docker-image-with-repo2docker

相关问题