Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangkx1
easy_tools
Commits
d3982d85
"docs/user-tutorial/vscode:/vscode.git/clone" did not exist on "7a162020a8342c81e2574937c84185a90869ace1"
Commit
d3982d85
authored
Apr 01, 2026
by
wangkx1
Browse files
Update launch_container.sh
parent
4da20266
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
launch_container.sh
launch_container.sh
+5
-3
No files found.
launch_container.sh
View file @
d3982d85
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment