"examples/git@developer.sourcefind.cn:tsoc/superbenchmark.git" did not exist on "ce3ed24ab7744db6f1e1018e2d19fed81575fd1c"
Commit d3982d85 authored by wangkx1's avatar wangkx1
Browse files

Update launch_container.sh

parent 4da20266
......@@ -10,7 +10,9 @@
# ==================== 配置区域 ====================
# 镜像配置
docker_image="harbor.sourcefind.cn:5443/dcu/admin/base/vllm:0.11.0-ubuntu22.04-dtk25.04.2-1226-das1.7-py3.10-20251226"
container_name="wkx-dtk25042-vllm-0.11.0-1226"
container_name="wkx-dtk25042-vllm-0.11.0-1226-v2"
# 工作目录配置(容器内的开发目录)
work_dir="/datav/wkx"
# 挂载卷配置 (格式: "宿主机路径:容器路径")
# 可以添加多个挂载,用空格分隔
......@@ -161,7 +163,7 @@ if [ "$num" -gt 0 ]; then
# 默认行为:进入容器
docker start ${CONTAINER_NAME}
docker exec -ti --env COLUMNS=`tput cols` --env LINES=`tput lines` ${CONTAINER_NAME} /bin/bash
docker exec -ti --env COLUMNS=`tput cols` --env LINES=`tput lines` ${CONTAINER_NAME} /bin/bash -c "cd ${work_dir} && exec /bin/bash"
exit
else
......@@ -183,6 +185,6 @@ else
exit
fi
docker exec -ti --env COLUMNS=`tput cols` --env LINES=`tput lines` ${CONTAINER_NAME} /bin/bash
docker exec -ti --env COLUMNS=`tput cols` --env LINES=`tput lines` ${CONTAINER_NAME} /bin/bash -c "cd ${work_dir} && exec /bin/bash"
exit
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment