#切换到root用户
su
yum安装jcc相关
yum -y install gcc
yum -y install gcc-c++
安装yum-utils
sudo yum install -y yum-utils
设置stable镜像仓库
sudo yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
更新yum软件包索引
yum makecache fast
安装DOCKER CE
sudo yum install docker-ce docker-ce-cli containerd.io docker-compose-plugin
启动Docker
sudo systemctl start docker
# 查看docker进程
ps -ef|grep docker
# 查看docker版本
docker version