Centos 7 离线安装Docker和Docker Compose
Centos7.5下载
。下载地址:链接:https://pan.baidu.com/s/1ht8N0ES_q8V5Of-gN3dzYQ 提取码:6j8k
。阿里云站点:http://mirrors.aliyun.com/centos/7/isos/x86_64/
1、Docker下载rpm包
。安装downloadonly
sudo yum install yum-plugin-downloadonly
。下载Docker安装包
yum install --downloadonly --downloaddir=/tmp/7.5/ docker-1.13.1
2、Docker下载rpm包
https://download.docker.com/linux/centos/7/x86_64/stable/Packages/
。Docker-compose下载
curl -L https://get.daocloud.io/docker/compose/releases/download/1.25.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
以上就是centos7安装包、docker的rpm、docker-compose准备工作(拷贝出来)
。离线安装
安装Linux Centos 7系统
。mount -o loop xxx.iso /mnt
。/etc/yum.repos.d/ 备份其它.repo 只留一个repo文件,修改baseurl=file:///mnt,保存退出
yum clean;yum makecache
yum install -y .rpm
安装Dcoker.rpm包
安装docker-compose包
。cp docker-compose /user/local/bin/docker-compose
。chmod +x /user/local/bin/docker-compose