kubernetes1.8.4安装指南 -- 3. 安装docker ce

来源:互联网 发布:linux yum 安装mysql 编辑:程序博客网 时间:2024/05/29 03:47
由于采用的是基于静态pod的安装方式,所以需要在所有节点安装docker包括master节点.

安装docker-ce 17.09
yum install yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repohttps://download.docker.com/linux/centos/docker-ce.repo
yum list docker-ce --showduplicates | sort -r
yum install docker-ce-17.09.0.ce
systemctl start docker
systemctl enable docker
docker run hello-world

编辑/usr/lib/systemd/system/docker.service
ExecStartPost=/usr/sbin/iptables -I FORWARD -s 0.0.0.0/0 -j ACCEPT
ExecStart=....................

systemctl daemon-reload
systemctl restart docker


参考资料
官方安装文档
https://docs.docker.com/engine/installation/linux/docker-ce/centos/#install-docker-ce-1
原创粉丝点击