Last active
July 7, 2023 07:32
-
-
Save brianz/8458fc666f5156fdbbc2 to your computer and use it in GitHub Desktop.
Install docker on Amazon Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# steps taken verbatim from: | |
# http://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basics.html#install_docker | |
# | |
sudo yum update -y | |
sudo yum install -y docker | |
sudo service docker start | |
sudo usermod -a -G docker ec2-user | |
# log out and log in to pickup the added group | |
# Also install some common sense stuff | |
sudo yum install -y git | |
sudo yum -y groupinstall "Development Tools" |
Hi,
How do I install an specific version of docker(say 1.9.1) in Amazon Linux
@NishaKuppuswamy , @klausbadelt Docker version is dependent on Amazon RHEL Linux OS version as the yum packages are taken from amazon's repository. Please consider upgrading OS from 2016 to 2017 or latest.
List of supported docker version in the following link.
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-ami-versions.html
After booting Amazon Linux 2017.09 machine just do
yum install docker -y
good to go !!
you could try yum repolist all
command see from where the packages are taken from.
If you're running Amazon linux 2, just type # amazon-linux-extras install docker
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is also described in the AWS ECS documentation but installs an outdated Docker.