From 8548816b10e33f64521c1cd55dc9ec99e89c1dfc Mon Sep 17 00:00:00 2001 From: Mike Marchetti Date: Wed, 3 Oct 2018 12:58:53 -0400 Subject: [PATCH] Update docker installation Change-Id: I3a6fbabe94b847f3c4ce5124e403455f457e317e Signed-off-by: Mike Marchetti --- packer/scripts/install_packages.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- 2.25.1