更新
This commit is contained in:
@ -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
|
||||
```
|
||||
|
Reference in New Issue
Block a user