赞
踩
# systemctl stop firewalld && systemctl disable firewalld
# yum install iptables-services vim net-tools yum-utils -y
# service iptables stop
# systemctl disable iptables
# iptables -F
# sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
# yum install -y ntp ntpdate
# ntpdate cn.pool.ntp.org
# crontab -e
MAILTO=""
* */1 * * * /usr/sbin/ntpdate cn.pool.ntp.org
# systemctl restart crond
# yum install -y wget net-tools nfs-utils lrzsz gcc gcc-c++ make cmake libxml2-devel openssl-devel curl curl-devel unzip sudo ntp libaio-devel wget vim ncurses-devel autoconf automake zlib-devel python-devel epel-release openssh-server
# yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
# yum install -y yum-utils device-mapper-persistent-data lvm2
# yum install docker-ce -y
# systemctl start docker && systemctl enable docker
# systemctl status docker
# cat > /etc/sysctl.d/docker.conf <<EOF
> net.bridge.bridge-nf-call-ip6tables = 1
> net.bridge.bridge-nf-call-iptables = 1
> net.ipv4.ip_forward = 1
> EOF
# sysctl -p /etc/sysctl.d/docker.conf
# vim /etc/docker/daemon.json
{
"registry-mirrors": ["https://2w4qjr9k.mirror.aliyuncs.com"]
}
# systemctl daemon-reload
# systemctl restart docker
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。