
docker stop 123
docker rm 123

#DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
#DIR="$(dirname $( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd ))"

export dockerImage=123:v2

#docker run --gpus all --ipc=host --ulimit memlock=-1 --ulimit stack=67108864 -it --rm -v $DIR:/workspace $dockerImage /bin/bash
# GPU=nvidia0 gpu-docker run --ipc=host --ulimit memlock=-1 --ulimit stack=67108864 -it --rm \
#GPU=nvidia0 gpu-docker run --ipc=host --ulimit memlock=-1 --ulimit stack=67108864 \



docker run --ipc=host --ulimit memlock=-1 --ulimit stack=67108864 \
--name 123 \
--volume=/share/CACHEDEV1_DATA/.qpkg/NVIDIA_GPU_DRV/usr:/usr/local/nvidia \
--device /dev/nvidiactl:/dev/nvidiactl --device /dev/nvidia-uvm:/dev/nvidia-uvm --device /dev/nvidia0:/dev/nvidia0 \
-v /share/WORKSPACE/nnUNet:/workspace \
-v /share/Public/git/123:/123 \
-v /share/Public/git/123:/root \
-v /share/Public/nn:/nn \
-v /share/Public/Patient:/Patient \
-p 8000:8000 \
-p 8888:8888 \
-p 11120:11120 \
--restart=always \
$dockerImage &

