docker部署文档

1、yum remove docker
docker-client
docker-client-latest
docker-common
docker-latest
docker-latest-logrotate
docker-logrotate
docker-selinux
docker-engine-selinux
docker-engine

2、安装基础命令
yum install -y yum-utils
device-mapper-persistent-data
lvm2

3、下载官方源
yum-config-manager
–add-repo
https://download.docker.com/linux/centos/docker-ce.repo

4、安装
yum install -y docker -ce

5、配置镜像加速地址
vim /etc/docker/daeon.json
{
“registry-mirrors”: [“https://5a5582l7.mirror.aliyuncs.com”,“http://hub-mirror.c.163.com”]
}

6、重启docker
systemctl reload docker
systemctl restart docker

©️2020 CSDN 皮肤主题: 1024 设计师:上身试试 返回首页