docker离线/内网/无外网安装

#先更新yum库

sudo yum update

#安装相关依赖包

sudo yum install -y libcgroup

sudo yum install -y policycoreutils-python

sudo yum install -y libtool-ltdl

#安装docker-engine-selinux

sudo rpm -ivh docker-engine-selinux-1.11.1-1.el7.centos.noarch.rpm

#安装docker-engine

sudo rpm -ivh docker-engine-1.11.1-1.el7.centos.x86_64.rpm

#启动docker服务

sudo systemctl start docker

#加入开机启动项

sudo systemctl enable docker

你可能感兴趣的:(安装,docker,离线,内网,无外网)