Hyperledger Fabric 1.0镜像下载

1、方式一

直接去Docker Hub上直接下载:

https://hub.docker.com/r/hyperledger/

docker pull hyperledger/fabric-peer:x86_64-1.0.1
docker pull hyperledger/fabric-orderer:x86_64-1.0.1
docker pull hyperledger/fabric-ccenv:x86_64-1.0.1
docker pull hyperledger/fabric-ca:x86_64-1.0.1
docker pull hyperledger/fabric-baseos:x86_64-0.3.1
docker pull hyperledger/fabric-tools:x86_64-1.0.1

docker tag docker.io/hyperledger/fabric-ca:x86_64-1.0.1 hyperledger/fabric-ca:latest
docker tag docker.io/hyperledger/fabric-peer:x86_64-1.0.1 hyperledger/fabric-peer:latest
docker tag docker.io/hyperledger/fabric-orderer:x86_64-1.0.1 hyperledger/fabric-orderer:latest
docker tag docker.io/hyperledger/fabric-ccenv:x86_64-1.0.1 hyperledger/fabric-ccenv:latest
docker tag docker.io/hyperledger/fabric-tools:x86_64-1.0.1 hyperledger/fabric-tools:latest


2、方式二

下载fabric的源码文件:curl -O https://codeload.github.com/hyperledger/fabric/tar.gz/v1.0.1

解压:tar -zxvf v1.0.1

在解压后的源文件路径中找到一份bootstrap-1.0.1.sh:github.com/hyperledger/fabric/scripts/bootstrap-1.0.1.sh

执行:sh bootstrap-1.0.1.sh

执行后就要开始等待镜像下载了,下载完成后,可以用以下命令,查看下载的镜像


docker images | grep hyperledger*


3、方式三

仍然是方式二下载的源文件中路径github.com/hyperledger/fabric/examples/e2e_cli/下边有个download-dockerimages.sh的文件

执行命令:source download-dockerimages.sh -c x86_64-1.0.0 -f x86_64-1.0.0

这样也可以下载所有需要的Fabric Docker镜像了。

4、方式四

在这个地址https://github.com/hyperledger/fabric-samples/tree/v1.0.2/scripts有个fabric-preload.sh的脚本文件可以用来自动下载需要版本的镜像。

fabric-preload.sh will preload all of the requisite docker images for Hyperledger Fabric and tag them with the 'latest' tag. Optionally, specify a specific version (e.g. 1.0.1). Default version is 1.0.0.

./fabric-preload.sh [version]

你可能感兴趣的:(Fabric)