Docker只支持下面Ubuntu系统:
- Ubuntu Xenial 16.04 (LTS)
- Ubuntu Wily 15.10
- Ubuntu Trusty 14.04 (LTS)
- Ubuntu Precise 12.04 (LTS)
Linux内核版本(uname -r)必须是3.10及以后版本,且必须是64位
安装步骤
(https://docs.docker.com/engine/installation/linux/ubuntulinux/)
sudo apt-get update
sudo apt-get install linux-image-extra-$(uname -r)
sudo reboot
sudo apt-getinstall apt-transport-https ca-certificates
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys58118E89F3A912897C070ADBF76221572C52609D
Open the /etc/apt/sources.list.d/docker.list file in your favorite editor.If the file doesn’t exist, create it.Remove any existing entries.
deb https://apt.dockerproject.org/repo ubuntu-trusty main
Save and close the /etc/apt/sources.list.d/docker.list file.
sudo apt-get update
sudo apt-get purge lxc-docker
apt-cachepolicy docker-engine
apt-get upgrade
sudo apt-get install docker-engine
sudo service docker start
sudo docker run hello-world
sudo groupadd docker
sudo usermod -aG docker sq
Log out and log back in.
dockerrun hello-world
sudo apt-get install apt-transport-https ca-certificates
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo apt-get install linux-image-extra-$(uname -r)
sudo apt-get install linux-image-generic-lts-trusty
sudo reboot
curl -sSL https://get.daocloud.io/docker | sh
2.安装rocksdb
https://github.com/facebook/rocksdb/releases
下载4.6.1版本
tar -zxvf rocksdb-4.6.1.tar.gz
cd rocksdb-4.6.1
sudo apt-get install libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev
make static_lib will compile librocksdb.a, RocksDB static library. Compiles static library in release mode
make shared_lib will compile librocksdb.so, RocksDB shared library. Compiles shared library in release mode.
make check will compile and run all the unit tests. make check will compile RocksDB in debug mode
make all will compile our static library, and all our tools and unit tests. Our tools depend on gflags. You will need to have gflags installed to run make all. This will compile RocksDB in debug mode. Don't use binaries compiled by make all in production.
By default the binary we produce is optimized for the platform you're compiling on (-march=native or the equivalent). If you want to build a portable binary, add 'PORTABLE=1' before your make commands, like this: PORTABLE=1 make static_lib
make
make install
安装 go并配置go环境
cd /work/src
git clone https://github.com/hyperledger/fabric.git
cp -a./hyperledger/fabric/vendor/* ./
cdgithub.com/hyperledger/fabric
make peer