Skip to content

Instantly share code, notes, and snippets.

@DanielDaCosta
Created October 14, 2021 16:31
Show Gist options
  • Save DanielDaCosta/033c1131ae7ae0cb0773b0a7a7f7b4e5 to your computer and use it in GitHub Desktop.
Save DanielDaCosta/033c1131ae7ae0cb0773b0a7a7f7b4e5 to your computer and use it in GitHub Desktop.
# installing docker
$ sudo yum update -y
$ sudo amazon-linux-extras install docker
$ sudo service docker start
$ sudo usermod -a -G docker ec2-user # Add the ec2-user to the docker group so you can execute Docker commands without using sudo
# Configure Docker to start on boot
$ sudo systemctl enable docker.service # https://docs.docker.com/engine/install/linux-postinstall/#configure-docker-to-start-on-boot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment