Skip to content
Hyperledger Fabric

Prerequisite and Installation

Operating systems: Ubuntu Linux 14.04 / 16.04/18.04 LTS (both 64-bit), or macOS
cURL tool: The latest version
Docker engine: Version 17.06.2-ce or greater
Docker-compose: Version 1.14 or greater
Go: Version 1.13.x
Node: Version 10.21(Node.js version 10 is supported from 10.15.3 and higher)
npm: Version 6.14.4
Python: 2.7.x

sudo apt-get install curl
sudo apt-get install nodejs
sudo apt-get install npm
sudo apt-get install python
Install and Upgrade Docker & Docker Compose
curl -fsSL | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] $(lsb_release -cs) stable"
sudo apt-get update
apt-cache policy docker-ce
sudo apt-get install -y docker-ce
Docker Compose
sudo curl -L "$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose --version ーーーー> 1.26
sudo apt-get upgrade
Run hello-world docker image
docker run hello-world
If you are getting permission error, follow the below steps
sudo groupadd docker
sudo usermod -aG docker ${USER}
Open new command line or restart same one
Docker run hello-world
If above image run successfully, we are good to go for next step
Go Lang Installation
tar -xzvf go1.13.12.linux-amd64.tar.gz
sudo mv go/ /usr/local
Add following into bash rc file
export GOPATH=/usr/local/go
export PATH=$PATH:$GOPATH/bin
curl -sL | sudo bash -
sudo apt-get install -y nodejs

Verify All Versions
curl -V
npm -v
docker version
docker-compose version
go version
python -V
node -v
Install Fabric-Sample, Binaries & Docker Images
Latest Images
curl -sSL | bash -s -- 2.2.1 1.4.7
Version Specific
curl -sSL | bash -s -- <fabric_version> <fabric-ca_version> <thirdparty_version>
Important Note:
Add following binary path to bashrc file
export PATH=$PATH:/home/ubuntu/fabric-samples/bin

Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
) instead.