From 25715e65021f10816cf23e2d3fdfa30e11644b1a Mon Sep 17 00:00:00 2001 From: Jarno Rantanen Date: Thu, 29 Oct 2020 20:54:36 +0200 Subject: [PATCH] Update Docker install script in aws_ec2_ebs_docker_host module. The existing method didn't set up the Docker engine to correctly restart after reboot. --- aws_ec2_ebs_docker_host/provision-docker.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/aws_ec2_ebs_docker_host/provision-docker.sh b/aws_ec2_ebs_docker_host/provision-docker.sh index 63dee46..94cce61 100644 --- a/aws_ec2_ebs_docker_host/provision-docker.sh +++ b/aws_ec2_ebs_docker_host/provision-docker.sh @@ -1,7 +1,9 @@ #!/bin/bash -# Install docker (convenience script isn't available for 20.04 LTS yet) -sudo apt-get update && sudo apt-get install -y docker.io +# https://docs.docker.com/engine/install/ubuntu/#install-using-the-convenience-script +curl -fsSL https://get.docker.com -o get-docker.sh +sudo sh get-docker.sh +rm get-docker.sh # Allow using docker without sudo sudo usermod -aG docker $(whoami)