Switched to correct installation method for docker in clearwater deployment scripts 87/39087/1
authorAakashKT <aakash.kt@research.iiit.ac.in>
Thu, 10 Aug 2017 18:11:35 +0000 (23:41 +0530)
committerAakashKT <aakash.kt@research.iiit.ac.in>
Thu, 10 Aug 2017 18:13:45 +0000 (23:43 +0530)
Change-Id: Id6551c43488d5fbdef169285c5741e22bd00bea8
Signed-off-by: Aakash KT <aakash.kt@research.iiit.ac.in>
juju/k8s/clearwater/deploy_clearwater_k8s.sh

index 695f508..8a4160a 100755 (executable)
 
 function setup_docker() {
        echo "Installing docker..."
-       sudo apt-get install -y docker.io
+       sudo apt-get update
+       sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
+       curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
+       sudo add-apt-repository \
+          "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
+       sudo apt-get update
+       sudo apt-get install docker-ce
 
        sudo docker login --username="aakashkt" --password="joid123"
 }