Skip to content

Instantly share code, notes, and snippets.

Last active Mar 4, 2021
What would you like to do?
Shell script for setting up Docker, docker-compose, and Node JS on Amazon Linux 2
sudo amazon-linux-extras install -y docker
sudo service docker start
sudo usermod -a -G docker ec2-user
sudo chkconfig docker on
sudo curl -L$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo yum install -y gcc-c++ make
curl -sL | sudo -E bash -
sudo yum install -y nodejs git
sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment