From d04056f068ed64a4b385a643609d6dd603d64e14 Mon Sep 17 00:00:00 2001 From: Vladimir Protsenko Date: Thu, 9 Feb 2023 00:02:42 +0400 Subject: [PATCH] Changed defaults working dir from user home to current (project) directory. --- start_daemon.sh | 2 +- start_interactively.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/start_daemon.sh b/start_daemon.sh index 9cb2b0f..552202e 100755 --- a/start_daemon.sh +++ b/start_daemon.sh @@ -1,4 +1,4 @@ #!/bin/bash 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} diff --git a/start_interactively.sh b/start_interactively.sh index c587b13..77e8018 100755 --- a/start_interactively.sh +++ b/start_interactively.sh @@ -1,4 +1,4 @@ #!/bin/bash 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}