环境

ubuntu 16.04 4.4.0-104-generic

Docker version 17.03.0-ce, build 60ccb22

docker-compose version 1.14.0, build c7bdf9e

git version 2.7.4

fabric-peer:x86_64-1.0.5

安装部署

1、从 DockerHub上拉取镜像 

docker pull hyperledger/fabric-peer:x86_64-1.0.5

docker pull hyperledger/fabric-membersrvc:x86_64-0.6.1-preview

docker pull hyperledger/fabric-baseimage:x86_64-0.4.2

docker pull hyperledger/fabric-tools:x86_64-1.0.5

docker pull hyperledger/fabric-orderer:x86_64-1.0.5

docker pull yeasy/hyperledger-fabric:1.0.5

2、使用Git下载Docker-compose模板

git clone https://github.com/yeasy/docker-compose-files

3、启动Fabric

修改base.yaml 注释掉#image: yeasy/hyperledger-fabric-orderer:1.0.5。不修改,执行下面命令时会自动pull 并使用yeasy/hyperledger-fabric-orderer:1.0.5

这里选择建立一个4 peer (belonging to 2 organizations) fabric network.

cd docker-compose-files/hyperledger_fabric/v1.0.5

docker-compose -f docker-compose-2orgs-4peers-solo.yaml up -d

4、至此搭建完毕,检查结果

docker-compose -f docker-compose-2orgs-4peers-solo.yaml ps

docker ps

未完待续:测试fabric ......