Fabric 0.6 + Explorer
Here's a rundown of installing Hyperledger Fabric 0.6 + Explorer on a Ubuntu 16.04 install: First things first, install all the prerequisites:
cd ~
sudo apt update && sudo apt upgrade
sudo apt install git make gcc g++ libltdl-dev curl python pkg-config nfs-common -y
curl -fsSL test.docker.com | sh
sudo usermod -aG docker $USER
exec sudo su -l $USER
sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
Download the docker-compose files and separate the hyperledger files from the rest:
git clone https://github.com/yeasy/docker-compose-files
cd docker-compose-files
cp -R hyperledger ..
cd ..
rm -rf docker-compose-files
Run the following commands to start the hyperledger network on docker compose.
docker pull yeasy/hyperledger-fabric:0.6-dp \
&& docker pull yeasy/hyperledger-fabric-peer:0.6-dp \
&& docker pull yeasy/hyperledger-fabric-base:0.6-dp \
&& docker pull yeasy/blockchain-explorer:latest \
&& docker tag yeasy/hyperledger-fabric-peer:0.6-dp hyperledger/fabric-peer \
&& docker tag yeasy/hyperledger-fabric-base:0.6-dp hyperledger/fabric-baseimage \
&& docker tag yeasy/hyperledger-fabric:0.6-dp hyperledger/fabric-membersrvc
cd hyperledger/0.6/pbft
nohup docker-compose -f 4-peers-with-explorer.yml up &
You can see the progress of the docker compose command by typing:
cat nohup.out
Assuming everything worked navigate your browser to http://{host machine ip}:9090.