feat: 重构 Docker Compose 配置,移除旧文件并添加新的安装和配置文件

This commit is contained in:
2025-03-20 00:49:08 +08:00
parent 6b16d70f10
commit cda5a22823
25 changed files with 410 additions and 19 deletions

View File

@@ -16,13 +16,13 @@ Docker 提供了一个自动配置与安装的脚本,支持 Debian、RHEL、SU
使用 curl
```bash
curl -fsSL https://git.sugarscat.cn/me/bash/-/raw/main/docker/install.sh | sh
curl -fsSL https://git.sugarscat.cn/me/bash/-/raw/main/docker/install/install.sh | sh
```
使用 wget
```bash
wget -O- https://git.sugarscat.cn/me/bash/-/raw/main/docker/install.sh | sh
wget -O- https://git.sugarscat.cn/me/bash/-/raw/main/docker/install/install.sh | sh
```
## Debian/Ubuntu/Raspbian
@@ -48,7 +48,7 @@ apt-get install ca-certificates curl gnupg
```bash
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://git.sugarscat.cn/me/bash/-/raw/main/docker/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
curl -fsSL https://git.sugarscat.cn/me/bash/-/raw/main/docker/install/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian \
@@ -60,7 +60,7 @@ echo \
```bash
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://git.sugarscat.cn/me/bash/-/raw/main/docker/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
curl -fsSL https://git.sugarscat.cn/me/bash/-/raw/main/docker/install/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian \
@@ -72,7 +72,7 @@ echo \
```bash
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://git.sugarscat.cn/me/bash/-/raw/main/docker/raspbian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
curl -fsSL https://git.sugarscat.cn/me/bash/-/raw/main/docker/install/raspbian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian \
@@ -108,7 +108,7 @@ dnf remove docker \
```bash
dnf -y install dnf-plugins-core
dnf config-manager --add-repo https://git.sugarscat.cn/me/bash/-/raw/main/docker/fedora/docker-ce.repo
dnf config-manager --add-repo https://git.sugarscat.cn/me/bash/-/raw/main/docker/install/fedora/docker-ce.repo
sed -i 's+https://download.docker.com+https://mirrors.tuna.tsinghua.edu.cn/docker-ce+' /etc/yum.repos.d/docker-ce.repo
```
@@ -137,7 +137,7 @@ yum remove docker \
```bash
yum install -y yum-utils
yum-config-manager --add-repo https://git.sugarscat.cn/me/bash/-/raw/main/docker/centos/docker-ce.repo
yum-config-manager --add-repo https://git.sugarscat.cn/me/bash/-/raw/main/docker/install/centos/docker-ce.repo
sed -i 's+https://download.docker.com+https://mirrors.tuna.tsinghua.edu.cn/docker-ce+' /etc/yum.repos.d/docker-ce.repo
```