Create setupPbft.sh
parent
734e731f63
commit
d3cdb50c63
|
@ -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
|
Loading…
Reference in New Issue