卷装tensorflow容器用于持久存储 [英] volume mount tensorflow container for persistance storage
本文介绍了卷装tensorflow容器用于持久存储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想将 TensorFlow
笔记本文件夹安装到Ubuntu中的 / src / work
文件夹中。
Hi I am trying to get TensorFlow
notebook folder mounted to /src/work
folder in Ubuntu.
sudo docker run -it -v /src/work:/HOME/notebooks -p 8888:8888 tensorflow/tensorflow:1.3.0
我尝试了-v标志的许多组合。它不是在读取我的工作文件夹中已有的文件,也不是在其中保存新文件。
I have tried many combination of -v flags. It is not reading the files already in my work folder or saving new files to it.
推荐答案
您正在错误地装入卷,正是路径。应该是
You're mounting the volume incorrectly, precisely the path. It should be
-v〜/ [从$ HOME的绝对路径] / src / work:〜/ notebooks /
说明:
由于您的工作目录为 /笔记本
,将其放置在 / $ HOME / notebooks
中。您使用〜
进入 $ HOME
。
Since your working directory is /notebooks
, which places it at /$HOME/notebooks
. You use ~
to get to the $HOME
.
这篇关于卷装tensorflow容器用于持久存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文