快速搭建hyperledger-fabric 2.0.0 test-network

fabric2.0发布之后,官网中提到了,建议使用test network作为上手例子,取代first network
快速搭建hyperledger-fabric 2.0.0 test-network
工具安装:curl docker docker-compose(除非后续执行链码,使用镜像搭建网络不用安装go nodejs)
准备食材:docker镜像 fabric-sample(提前下载好)
开启docker
systemctl start docker(service docker start)
快速搭建hyperledger-fabric 2.0.0 test-network
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

展示下图说明执行成功
快速搭建hyperledger-fabric 2.0.0 test-network

上一篇:Fabric 智能合约——token(代币)交易


下一篇:Could not find profile: TwoOrgsOrdererGenesis.