增加安装最新版本的docker的指令

This commit is contained in:
spiritlhl 2024-06-19 22:06:26 +08:00 committed by GitHub
parent 64e0203ecc
commit 55f08169b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -342,8 +342,21 @@ systemctl disable systemd-resolved
### 安装docker和docker-compose ### 安装docker和docker-compose
安装24版本的docker
```bash ```bash
curl -sSL https://get.docker.com/ | sh curl -sSL https://get.docker.com/ | sh
```
或安装最新版本的docker(都选官方源即可)
```
bash <(curl -sSL https://linuxmirrors.cn/docker.sh)
```
安装docker-compose最新版本
```
curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-linux-$(uname -m)" -o /usr/local/bin/docker-compose curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-linux-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose
docker-compose --version docker-compose --version