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
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