更新 'testbed/scripts/dnew'
This commit is contained in:
parent
6051aeaad7
commit
91133afcbd
|
@ -5,8 +5,8 @@ if [[ "$EUID" == "0" ]]; then
|
||||||
echo "Please run as your own user (i.e., DO NOT sudo)."
|
echo "Please run as your own user (i.e., DO NOT sudo)."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
container_name=$USER_$(date +%y%m%d-%H%M%S)
|
container_name=$(whoami)_$(date +%y%m%d-%H%M%S)
|
||||||
image_name=${1:-"nasp-ubuntu"}
|
image_name=${1:-"git.nasp.ob.ac.cn/nasp/nasp-ubuntu"}
|
||||||
cmd=${2:-"/etc/startup.sh"}
|
cmd=${2:-"/etc/startup.sh"}
|
||||||
echo "container name: $container_name"
|
echo "container name: $container_name"
|
||||||
echo "image: $image_name"
|
echo "image: $image_name"
|
||||||
|
@ -15,7 +15,7 @@ sudo docker run -d --net=host -v /home2:/home2 \
|
||||||
--device=/dev/infiniband/rdma_cm --device=/dev/infiniband/issm0 \
|
--device=/dev/infiniband/rdma_cm --device=/dev/infiniband/issm0 \
|
||||||
--device=/dev/infiniband/umad0 --device=/dev/infiniband/uverbs0 \
|
--device=/dev/infiniband/umad0 --device=/dev/infiniband/uverbs0 \
|
||||||
--runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=all \
|
--runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=all \
|
||||||
-v /usr/local/cuda:/usr/local/cuda --security-opt \
|
--security-opt \
|
||||||
seccomp=unconfined --ulimit memlock=-1:-1 \
|
seccomp=unconfined --ulimit memlock=-1:-1 \
|
||||||
--restart=always \
|
--restart=always \
|
||||||
--name $container_name -it $image_name $cmd
|
--name $container_name -it $image_name $cmd
|
||||||
|
|
Loading…
Reference in New Issue
Block a user