From a93e4cecae2e48864eabd34be86f9fd4a95f439a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Sun, 14 Sep 2025 15:37:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=9B=E5=BB=BA=E5=8F=AF=E9=99=84?= =?UTF-8?q?=E5=8A=A0=E7=9A=84=20Docker=20=E7=BD=91=E7=BB=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 install_docker 函数中添加了创建名为 h-common 的可附加 Docker 网络的命令 - 使用 "--attachable" 选项使得该网络可以在多个容器之间共享 - 添加命令的位置在 1.sh 文件中,install_docker 函数的末尾 --- 1.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/1.sh b/1.sh index c12419a..b0a8f88 100644 --- a/1.sh +++ b/1.sh @@ -86,6 +86,8 @@ install_docker() { exit 1 fi fi + + docker network create --attachable h-common || true } modify_authorized_keys() {