Create setupPbft.sh

pull/2/head
swb 2016-07-22 18:25:21 +08:00 committed by GitHub
parent 734e731f63
commit d3cdb50c63
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
#! /bin/bash
if [ xroot != x$(whoami) ]
then
echo "You must run as root (Hint: sudo su)"
exit
fi
apt-get update
apt-get install git curl -y
wget -qO- https://get.docker.com/ | sh
sudo service docker stop
sudo docker daemon --api-cors-header="*" -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock