feat: 创建可附加的 Docker 网络

- 在 install_docker 函数中添加了创建名为 h-common 的可附加 Docker 网络的命令
- 使用 "--attachable" 选项使得该网络可以在多个容器之间共享
- 添加命令的位置在 1.sh 文件中,install_docker 函数的末尾
This commit is contained in:
严浩
2025-09-14 15:37:41 +08:00
parent 81424c5725
commit a93e4cecae

2
1.sh
View File

@@ -86,6 +86,8 @@ install_docker() {
exit 1 exit 1
fi fi
fi fi
docker network create --attachable h-common || true
} }
modify_authorized_keys() { modify_authorized_keys() {