本文介绍了在Docker Jupyter笔记本的GUI中显示卷文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Docker上运行Jupyter Notebook,并尝试将本地目录挂载到预期的Docker卷上.但是我无法在Jupyter笔记本中看到我的文件. Docker命令是

I run Jupyter Notebook with Docker and trying to mount local directory onto the intended Docker volume. But I am unable to see my files in the Jupyter notebook. The Docker command is

sudo nvidia-docker create -v ~/tf/src -it -p 8888:8888 
   -e PASSWORD=password 
   --name container_name gcr.io/tensorflow/tensorflow:latest-gpu

Jupyter Notebook的GUI看起来像

and the GUI of the Jupyter Notebook looks like

~/tf/src没有显示在Jupyter GUI中.

but ~/tf/src are not shown up in the Jupyter GUI.

在Jupyter中显示文件需要什么?我为此错误地初始化了容器吗?

推荐答案

安装卷的方式,我认为它的错误 -v ~/tf/src 应该是

the way you mount your volume i think its incorrect -v ~/tf/src it should be

-v /host/directory:/container/directory

-v /host/directory:/container/directory

这篇关于在Docker Jupyter笔记本的GUI中显示卷文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 10:32