This commit is contained in:
2023-03-19 23:23:43 +08:00
parent 42d587f331
commit 3979a10f7a
3 changed files with 70 additions and 6 deletions

View File

@ -8,13 +8,10 @@
一键安装脚本Linux系统都支持
```
```bash
curl -sSL https://get.docker.com/ | sh
#国内阿里云镜像
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
#Azure源(中国区azure)
curl -fsSL https://get.docker.com | bash -s docker --mirror AzureChinaCloud
```
@ -23,7 +20,7 @@
## 启动服务
```
```bash
# 启动docker服务
systemctl start docker.service
@ -67,7 +64,6 @@ Docker中国https://registry.docker-cn.com
### 写入配置文件 重启服务
```
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
@ -75,6 +71,7 @@ Docker中国https://registry.docker-cn.com
"registry-mirrors": ["https://mirror.ccs.tencentyun.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
```