首页 > 代码库 > 2.docker学习之linux安装

2.docker学习之linux安装

Docker CE is supported on CentOS 7.3 64-bit.

说明docker只能安装在centOS7以上

[root@hadoop-bigdata01 ~]# yum install -y yum-utils
[root@hadoop-bigdata01 ~]# yum-config-manager \
    --add-repo     https://download.docker.com/linux/centos/docker-ce.repo
    
[root@hadoop-bigdata01 ~]# yum makecache fast
[root@206 ~]# yum -y install docker-ce
[root@206 ~]# systemctl start docker

centOS7关闭防火墙

[root@206 ~]# systemctl stop firewalld.service

centOS7禁止开启启动防火墙

[root@206 ~]# systemctl disable firewalld.service 

查看防火墙状态

[root@206 ~]# firewall-cmd --state

 

2.docker学习之linux安装