Changed defaults working dir from user home to current (project) directory.

master
Vladimir Protsenko 2 years ago
parent ff497812e6
commit d04056f068

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash
CURDIRNAME=${PWD##*/} CURDIRNAME=${PWD##*/}
docker run --name ${USER}_${CURDIRNAME} -d --gpus all -p 8900:8888 -v /home/${USER}:/wd ${USER}_${CURDIRNAME} docker run --name ${USER}_${CURDIRNAME} -d --gpus all -p 8888:8888 -v $(pwd):/wd ${USER}_${CURDIRNAME}

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash
CURDIRNAME=${PWD##*/} CURDIRNAME=${PWD##*/}
docker run -it --rm --gpus "device=0" -p 8900:8888 -v /home/${USER}:/wd ${USER}_${CURDIRNAME} docker run -it --rm --gpus "device=0" -p 8888:8888 -v $(pwd):/wd ${USER}_${CURDIRNAME}

Loading…
Cancel
Save