diff --git a/examples/nomad-consul-ami/setup_amazon-linux-2.sh b/examples/nomad-consul-ami/setup_amazon-linux-2.sh index afa4e86..a24a786 100755 --- a/examples/nomad-consul-ami/setup_amazon-linux-2.sh +++ b/examples/nomad-consul-ami/setup_amazon-linux-2.sh @@ -8,5 +8,6 @@ sudo yum install -y git echo "[INFO] [${SCRIPT}] Setup docker" sudo yum install -y docker -sudo service docker start +sudo systemctl enable docker +sudo systemctl start docker sudo usermod -a -G docker ec2-user