简体   繁体   中英

docker not saving at wsl2 with -v and --mount

I tried to run tensorflow container at wsl2, but there is trouble: my notebooks not saving. My Dockerfile

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

i run it with

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

and my notebooks not saving (i saved it to Notebooks/ path), i dont know what to do, because previously its worked.Its builed good, GPU is worked, all fine, but not saving. I tried to do with mount, but same issue - its not saving.

What exactly do you have in mind?

Just for info, you mount the path from the host into the container. That means if /mnt/c/tflearn/tf1/Notebooks/ is empty it will be empty in the container too. You have to catch this with eg an entrypoint script.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM