From: Mike Marchetti Date: Wed, 3 Oct 2018 16:58:53 +0000 (-0400) Subject: Update docker installation X-Git-Tag: v5.0.0~88^2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F17%2F6617%2F1;p=osm%2Fdevops.git Update docker installation Change-Id: I3a6fbabe94b847f3c4ce5124e403455f457e317e Signed-off-by: Mike Marchetti --- diff --git a/packer/scripts/install_packages.sh b/packer/scripts/install_packages.sh index e24c8261..36445197 100644 --- a/packer/scripts/install_packages.sh +++ b/packer/scripts/install_packages.sh @@ -1,3 +1,10 @@ #!/bin/sh sudo apt -y update && apt-get -y upgrade -sudo apt -y install git wget curl vim snapd docker.io zfs lxd software-properties-common +sudo apt -y install git wget curl vim snapd lxd software-properties-common +sudo apt-get install -y apt-transport-https ca-certificates +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 -qq update +sudo apt-get install -y docker-ce +sudo groupadd -f docker +sudo usermod -aG docker $USER