Building a Fabric Network (2)

The previous article has installed all the programs needed to run and develop Fabric. This article mainly talks about how to run a simple Fabric network.

 

1. Download the official Sample code

git clone -b master https://github.com/hyperledger/fabric-samples.git

 

2. Download the bin toolkit, docker images

curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0

 After many tests, this short URL cannot be used under the domestic network qian-g
 
However, we can save the country by curve. Save the following code locally and run it.
 
Remember in the V1.0.2 version, the official did not give this website. Downloading this took a lot of time and effort.

In order to improve the download speed and avoid errors during the download process, you can set the domestic image of docker

Use vi to modify the /etc/docker/daemon.json file and add "registry-mirrors": [" https://registry.docker-cn.com "], as follows:

vi /etc/docker/daemon.json 

“registry-mirrors”: [“https://registry.docker-cn.com“] 
}

 After configuration, execute the following command to make the docker configuration file take effect

systemctl daemon-reload 

systemctl restart docker

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324692413&siteId=291194637