update docker installation method

This commit is contained in:
t3chn0m4g3 2016-02-11 14:57:10 +01:00
parent e55286a5b6
commit 6cc229c610

View file

@ -3,11 +3,11 @@
# T-Pot post install script # # T-Pot post install script #
# Ubuntu server 14.04.3, x64 # # Ubuntu server 14.04.3, x64 #
# # # #
# v16.03.6 by mo, DTAG, 2016-02-08 # # v16.03.7 by mo, DTAG, 2016-02-11 #
######################################################## ########################################################
# Type of install, SENSOR, INDUSTRIAL or FULL? # Type of install, SENSOR, INDUSTRIAL or FULL?
myFLAVOR="FULL" myFLAVOR="INDUSTRIAL"
# Some global vars # Some global vars
myPROXYFILEPATH="/root/tpot/etc/proxy" myPROXYFILEPATH="/root/tpot/etc/proxy"
@ -150,6 +150,13 @@ tee -a /etc/ssh/ssh_config <<EOF
UseRoaming no UseRoaming no
EOF EOF
# Let's add the docker repository
fuECHO "### Adding the docker repository."
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
tee /etc/apt/sources.list.d/docker.list <<EOF
deb https://apt.dockerproject.org/repo ubuntu-trusty main
EOF
# Let's pull some updates # Let's pull some updates
fuECHO "### Pulling Updates." fuECHO "### Pulling Updates."
apt-get update -y apt-get update -y
@ -157,9 +164,8 @@ fuECHO "### Installing Upgrades."
apt-get dist-upgrade -y apt-get dist-upgrade -y
# Let's install docker # Let's install docker
fuECHO "### Installing docker." fuECHO "### Installing docker-engine."
wget -qO- https://get.docker.com/gpg | apt-key add - apt-get install docker-engine=1.10.0-0~trusty -y
wget -qO- https://get.docker.com/ | sh
# Let's add proxy settings to docker defaults # Let's add proxy settings to docker defaults
if [ -f $myPROXYFILEPATH ]; if [ -f $myPROXYFILEPATH ];