45 lines
705 B
Markdown
45 lines
705 B
Markdown
> 本文作者:丁辉
|
|
|
|
# 通过脚本安装Docker
|
|
|
|
## 官方脚本
|
|
|
|
- 官方源
|
|
|
|
```bash
|
|
curl -fsSL https://get.docker.com | bash
|
|
```
|
|
|
|
- 阿里源
|
|
|
|
```bash
|
|
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
|
|
```
|
|
|
|
|
|
> 脚本下载:
|
|
>
|
|
> ```bash
|
|
> curl -fsSL https://get.docker.com -o get-docker.sh
|
|
> ```
|
|
|
|
## 第三方脚本(Rancher)
|
|
|
|
- 官方源
|
|
|
|
```bash
|
|
curl https://releases.rancher.com/install-docker/20.10.sh | sh
|
|
```
|
|
|
|
- 阿里源
|
|
|
|
```bash
|
|
curl -fsSL https://releases.rancher.com/install-docker/20.10.sh | sh -s -- --mirror Aliyun
|
|
```
|
|
|
|
|
|
> 脚本下载:
|
|
>
|
|
> ```bash
|
|
> curl -fsSL https://releases.rancher.com/install-docker/20.10.sh -o rancher-20.10.sh.sh
|
|
> ``` |