Skip to content

Commit

Permalink
Install docker using amazon-linux-extras (close snowplow-devops#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
colmsnowplow committed Jan 16, 2024
1 parent 4626b9d commit 23cc3fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/user-data.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1
# -----------------------------------------------------------------------------

function install_docker_ce() {
sudo yum install -y docker-20.10.4-1.amzn2
sudo amazon-linux-extras install docker=stable
sudo systemctl enable docker
sudo systemctl start docker
sudo usermod -a -G docker ec2-user
Expand Down

0 comments on commit 23cc3fe

Please sign in to comment.