fabric 单机环境搭建

centos+docker+docker-compose+fabric-sample

1. 修改yum源

(1)查看版本号

(2)wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

(3)修改版本号: vim CentOS-Base.repo :%s/$releasever/7-0.1406.el7/g sed -i ‘s/gpgcheck=1/gpgcheck=0/g‘ /etc/yum.repos.d/CentOS-Base.repo

(4)yum clean all yum makecache

(5)如果报连接错误 /etc/resolv.conf 添加 nameserver 8.8.8.8 nameserver 114.114.114.114 nameserver 223.5.5.5 # 这两个是阿里云公网DNS nameserver 223.6.6.6

2.准备工作
(1)yum install curl

(2)安装docker-compose  

pip install docker-compose

(3)安装docker yum install docker-ce https://www.runoob.com/docker/centos-docker-install.html

(4)

相关推荐