快速搭建hyperledger-fabric 2.0.0 test-network

旧街凉风 提交于 2020-04-18 11:24:34

fabric2.0发布之后,官网中提到了,建议使用test network作为上手例子,取代first network
在这里插入图片描述
工具安装:curl docker docker-compose(除非后续执行链码,使用镜像搭建网络不用安装go nodejs)
准备食材:docker镜像 fabric-sample(提前下载好)
开启docker
systemctl start docker(service docker start)
在这里插入图片描述
tar包上传后(任意位置,我放到/mnt下了)加载






docker load < couchdb.tar
docker load < fabric-ca-1-4-6.tar
docker load < fabric-tools-2-0-0.tar
docker load < fabric-peer-2-0-0.tar
docker load < fabric-orderer-2-0-0.tar
docker load < fabric-ccenv-2-0-0.tar
docker load < fabric-baseos-2-0-0.tar
docker load < fabric-javaenv-2-0-0.tar
docker load < fabric-nodeenv-2-0-0.tar
docker load < fabric-zookeeper-0-4-18.tar
docker load < fabric-kafka-0-4-18.tar
docker load < fabric-couchdb-0-4-18.tar

打tag

docker tag couchdb:2.3 couchdb:latest
docker tag hyperledger/fabric-ca:1.4.6 hyperledger/fabric-ca:latest
docker tag hyperledger/fabric-tools:2.0.0 hyperledger/fabric-tools:latest
docker tag hyperledger/fabric-peer:2.0.0 hyperledger/fabric-peer:latest
docker tag hyperledger/fabric-orderer:2.0.0 hyperledger/fabric-orderer:latest
docker tag hyperledger/fabric-ccenv:2.0.0 hyperledger/fabric-ccenv:latest
docker tag hyperledger/fabric-baseos:2.0.0 hyperledger/fabric-baseos:latest
docker tag hyperledger/fabric-javaenv:2.0.0 hyperledger/fabric-javaenv:latest
docker tag hyperledger/fabric-nodeenv:2.0.0 hyperledger/fabric-nodeenv:latest
docker tag hyperledger/fabric-zookeeper:0.4.18 hyperledger/fabric-zookeeper:latest
docker tag hyperledger/fabric-kafka:0.4.18 hyperledger/fabric-kafka:latest
docker tag hyperledger/fabric-couchdb:0.4.18 hyperledger/fabric-couchdb:latest

变更文件夹执行权限

[root@qkl16g-0003 mnt]# chmod a+x -R fabric-samples/

进入test-network文件夹

[root@qkl16g-0003 test-network]# ./network.sh up createChannel -ca -c mychannel -s couchdb

展示下图说明执行成功
在这里插入图片描述

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!