Skip to content

Commit

Permalink
Install docker using amazon-linux-extras
Browse files Browse the repository at this point in the history
  • Loading branch information
colmsnowplow committed Jan 11, 2024
1 parent 4626b9d commit 81cacc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/user-data.sh.tmpl
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
sudo systemctl enable docker
sudo systemctl start docker
sudo usermod -a -G docker ec2-user
Expand Down

0 comments on commit 81cacc9

Please sign in to comment.