apt-get update
apt-get install \ apt-transport-https \ ca-certificates \ curl \ software-properties-common
curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
apt-key fingerprint 0EBFCD88
apt-get update
linux
add-apt-repository "deb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
```
git
apt-get install docker-ce
github
驗證
docker run hello-world
golang
授予用戶權限
usermod -aG docker root
docker
curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
加執行權限
chmod +x /usr/local/bin/docker-compose
ubuntu
三、安裝Go網絡
wget http://mirrors.ustc.edu.cn/golang/go1.10.2.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.10.2.linux-amd64.tar.gz
編輯 ~/.profilecurl
export PATH=$PATH:/usr/local/go/bin export GOROOT=/usr/local/go export GOPATH=$HOME/go export PATH=$PATH:$HOME/go/bin
source ~/.profile
建立go目錄url
mkdir ~/go
建立目錄3d
mkdir -p ~/go/src/github.com/hyperledger
切換到該目錄
cd ~/go/src/github.com/hyperledger
克隆fabric代碼
git clone https://github.com/hyperledger/fabric.git
進入到fabric目錄
cd ~/go/src/github.com/hyperledger/fabric
切換到1.0版本
git checkout v1.0.0
進入到e2e_cli目錄
cd ~/go/src/github.com/hyperledger/fabric/examples/e2e_cli/
下載Docker鏡像
source download-dockerimages.sh -c x86_64-1.0.0 -f x86_64-1.0.0
啓動e2e_cli網絡
./network_setup.sh up