hyperledge fabric 2.0在ubuntu18.0上的搭建
Hyperledger Fabric是一个提供分布式账本解决方案的平台。Hyperledger Fabric被设计成支持不同的模块组件直接拔插启用。
系统要求:
Ubuntu18.04虚拟机
- 首先安装Docker:
先卸载老版docker:
$sudo apt-get remove docker docker-engine docker.io containerd runc
安装docker:
$ sudo apt-get update
$ sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
加入Docker官方GPG key:
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
验证一下:
$ sudo apt-key fingerprint 0EBFCD88
设置稳定版仓库:
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
注意,这一步是对于x86_64 / amd64位的,如需其他版本请去docker官网看文档,传送门:https://docs.docker.com/engine/install/ubuntu/
- 安装DOCKER ENGINE
$ sudo apt-get update
$ sudo apt-get install docker-ce docker-ce-cli containerd.io
安装成功了。
如果想不想安装对应的最新版本,想安装其他版本,可以选择以下命令:
$apt-cache madison docker-ce