diff --git a/docker-run.sh b/docker-run-su.sh similarity index 65% rename from docker-run.sh rename to docker-run-su.sh index 47b227a..4d890ce 100755 --- a/docker-run.sh +++ b/docker-run-su.sh @@ -1,11 +1,10 @@ #!/usr/bin/env bash nvidia-docker run \ --volume /etc/passwd:/etc/passwd:ro \ - --user "$(id -u)" \ --volume "$HOME:$HOME" \ --volume "$PWD:/mnt/project-root" \ --workdir /mnt/project-root \ --tty --interactive \ --init \ - popatry/anaconda-cuda:python3-anaconda5.1.0-cuda9.0-cudnn7-runtime-ubuntu16.04 \ - "$@" + popatry/anaconda-cuda:python3-miniconda-cuda9.0-cudnn7-runtime-ubuntu16.04-anaconda-project \ + su "$(whoami)"