docker
docker的安装
yum remove docker docker-common docker-selinux docker-engine -y
yum install -y yum-utils
mkdir -p /etc/yum.repos.d/bak;mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/bak/
yum-config-manager --add-repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
然后再 yum install docker-ce -y
1、先查看正在运行得docker : docker ps -a
2、删除所有已运行得容器
docker rm $(docker ps -a -q)
centos7 查看防火墙状态、开启、关闭命令
systemctl start firewalld
systemctl stop firewalld
systemctl status firewalld
如下表示防火墙开启中 active (running) 防火墙关闭中 inactive (dead)