Skip to content

Commit cb46889

Browse files
doc: update docker.md (#603)
添加新的安装方式
1 parent 2737428 commit cb46889

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

command/docker.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,17 @@ sudo systemctl start docker
3737

3838
```
3939

40+
```bash
41+
# Docker官方提供的快速安装脚本 https://github.com/docker/docker-install
42+
# 不建议在生产环境中使用
43+
curl -fsSL https://get.docker.com -o get-docker.sh
44+
sudo sh ./get-docker.sh --dry-run
45+
46+
# 使用systemctl设置开机启动
47+
sudo systemctl enable docker.service
48+
sudo systemctl enable containerd.service
49+
```
50+
4051
## 语法
4152

4253
```shell

0 commit comments

Comments
 (0)