pop-os / tensorman

Utility for easy management of Tensorflow containers
GNU General Public License v3.0
206 stars 16 forks source link

Can I override the default volume argument? #27

Closed tianhaoz95 closed 3 years ago

tianhaoz95 commented 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" "-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?

tianhaoz95 commented 3 years ago

nvm, I just found that it was CWD.