centos7.x系统安装docker完整步骤

编程

yum remove docker 

docker-client

docker-client-latest

docker-common

docker-latest

docker-latest-logrotate

docker-logrotate

docker-engine

2.关闭防火墙

systemctl stop firewalld    # 关闭防火墙

systemctl disable firewalld # 设置防火墙禁止开机启动

3.关闭selinux

vi /etc/selinux/config   # 编辑这个文件,改为如下:

setenforce 0  # 使修改生效

4.安装docker依赖

yum install -y yum-utils device-mapper-persistent-data lvm2

5.配置docker的源

yum-config-manager 

--add-repo

https://download.docker.com/linux/centos/docker-ce.repo

6.安装docker-ce

yum -y install docker-ce

7.启动docker

systemctl start docker

8.设置docker开机启动

systemctl enable docker

9.测试

docker pull nginx

 

以上是 centos7.x系统安装docker完整步骤 的全部内容, 来源链接: utcz.com/z/514047.html

回到顶部