Skip to content

Instantly share code, notes, and snippets.

@cbschuld
Last active June 2, 2023 18:16
Show Gist options
  • Save cbschuld/0ff036198de8456e86d7091aaa2231a7 to your computer and use it in GitHub Desktop.
Save cbschuld/0ff036198de8456e86d7091aaa2231a7 to your computer and use it in GitHub Desktop.
Installing Docker and docker-compose on AWS EC2 Amazon Linux 2

Installing Docker and docker-compose on AWS EC2 Amazon Linux 2

sudo yum update
sudo yum install docker
wget https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)
sudo mv docker-compose-$(uname -s)-$(uname -m) /usr/local/bin/docker-compose
sudo chmod -v +x /usr/local/bin/docker-compose
sudo systemctl enable docker.service
sudo systemctl start docker.service
sudo systemctl status docker.service
@cbschuld
Copy link
Author

cbschuld commented Jun 2, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment