Closed tianhaoz95 closed 3 years ago
I am sharing my workstation with others, so I don't want access to entire home directory.
I added a config file like:
docker_flags = [ '-p', '9088:9088', '-v', '/home/tianhaoz/GitHub/ml_projects:/project/workspace', '-v', '/home/tianhaoz/Infra/tensorman/bin:/project/tools' ] tag = 'latest' variants = ['gpu', 'python3', 'jupyter']
but when I run tensorman run bash the converted docker run command is:
tensorman run bash
docker run
tensorman run bash "docker" "run" "-u" "1000:1000" "--gpus=all" "-e" "HOME=/project" "-p" "9088:9088" "-v" "/home/tianhaoz/GitHub:/projects" "-it" "--rm" "-v" "/home/tianhaoz:/project" "-w" "/project" "tensorflow/tensorflow:latest-gpu-py3-jupyter" "bash"
which still mounts my home directory to /project. Is there a way to override that?
/project
nvm, I just found that it was CWD.
CWD
I am sharing my workstation with others, so I don't want access to entire home directory.
I added a config file like:
but when I run
tensorman run bash
the converteddocker run
command is:which still mounts my home directory to
/project
. Is there a way to override that?