Update docker installation 17/6617/1
authorMike Marchetti <mmarchetti@sandvine.com>
Wed, 3 Oct 2018 16:58:53 +0000 (12:58 -0400)
committerMike Marchetti <mmarchetti@sandvine.com>
Wed, 3 Oct 2018 16:58:53 +0000 (12:58 -0400)
Change-Id: I3a6fbabe94b847f3c4ce5124e403455f457e317e
Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
packer/scripts/install_packages.sh

index e24c826..3644519 100644 (file)
@@ -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