doc: update docker.md (#603)

添加新的安装方式
This commit is contained in:
duzhuoshanwai 2024-09-12 21:36:11 +08:00 committed by GitHub
parent 27374284c1
commit cb46889491
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 0 deletions

View File

@ -37,6 +37,17 @@ sudo systemctl start docker
```
```bash
# Docker官方提供的快速安装脚本 https://github.com/docker/docker-install
# 不建议在生产环境中使用
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh ./get-docker.sh --dry-run
# 使用systemctl设置开机启动
sudo systemctl enable docker.service
sudo systemctl enable containerd.service
```
## 语法
```shell