【问题标题】:docker not saving at wsl2 with -v and --mountdocker 没有使用 -v 和 --mount 在 wsl2 中保存
【发布时间】:2020-11-14 13:23:45
【问题描述】:

我尝试在 wsl2 上运行 tensorflow 容器,但有问题:我的笔记本没有保存。 我的 Dockerfile

FROM tensorflow/tensorflow:latest-gpu-py3-jupyter
COPY Notebooks/ Notebooks/

我运行它

docker run -it  --gpus all -p 8888:8888 -v /mnt/c/tflearn/tf1/Notebooks/:/Notebooks/ tflearn1 

我的笔记本没有保存(我将它保存到笔记本/路径),我不知道该怎么做,因为它以前工作过。它的构建很好,GPU 工作正常,一切都很好,但没有保存。我尝试使用 mount,但同样的问题 - 它没有保存。

【问题讨论】:

    标签: docker docker-compose dockerfile docker-volume wsl-2


    【解决方案1】:

    你到底有什么想法?

    仅供参考,您将主机的路径挂载到容器中!这意味着如果 /mnt/c/tflearn/tf1/Notebooks/ 是空的,它在容器中也将是空的。你必须抓住这个,例如入口点脚本。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-12-10
      • 2021-08-08
      • 1970-01-01
      • 2020-09-18
      相关资源
      最近更新 更多