xiaoming728

xiaoming728

CentOS 7 安装 Docker

2023-12-11
CentOS 7 安装 Docker

1、卸载旧版本Docker

sudo yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine

2、安装Yum工具

sudo yum install -y yum-utils

3、Yum添加Docker应用库地址

sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

4、安装Docker

sudo yum install docker-ce docker-ce-cli containerd.io

5、启动Docker

sudo systemctl start docker

6、查看Docker启动状态

sudo systemctl status docker