"vscode:/vscode.git/clone" did not exist on "fb7d4a739612991f30a62940dabfd0e0a72dbd60"
Commit d3982d85 authored by wangkx1's avatar wangkx1
Browse files

Update launch_container.sh

parent 4da20266
...@@ -10,7 +10,9 @@ ...@@ -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" 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 ...@@ -161,7 +163,7 @@ if [ "$num" -gt 0 ]; then
# 默认行为:进入容器 # 默认行为:进入容器
docker start ${CONTAINER_NAME} 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 exit
else else
...@@ -183,6 +185,6 @@ else ...@@ -183,6 +185,6 @@ else
exit exit
fi 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 exit
fi 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