(简化版)安装docker顺序执行的命令
作者:互联网
# (简化版)安装docker顺序执行的命令
```
Install using the repository
安装准备工具
修改镜像源站点
#根据需要修改为腾讯云等等docker镜像站
正式安装
启动服务,设置开机启动
sudo yum install -y yum-utils
sudo yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
sed -i 's%download.docker.com%mirrors.cloud.tencent.com/docker-ce%' /etc/yum.repos.d/docker-ce.repo
sudo yum update -y
##sudo yum install -y docker-ce docker-ce-cli containerd.io
sudo yum install docker-ce -y
systemctl daemon-reload
systemctl start docker
systemctl status docker
systemctl enable docker
```
```
Install using the repository
安装准备工具
修改镜像源站点
#根据需要修改为腾讯云等等docker镜像站
正式安装
启动服务,设置开机启动
sudo yum install -y yum-utils
sudo yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
sed -i 's%download.docker.com%mirrors.cloud.tencent.com/docker-ce%' /etc/yum.repos.d/docker-ce.repo
sudo yum update -y
##sudo yum install -y docker-ce docker-ce-cli containerd.io
sudo yum install docker-ce -y
systemctl daemon-reload
systemctl start docker
systemctl status docker
systemctl enable docker
```
标签:顺序,简化版,sudo,ce,yum,install,docker,安装 来源: https://www.cnblogs.com/leftoy/p/16307470.html