Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 917 Bytes

AWS Deploy.md

File metadata and controls

29 lines (18 loc) · 917 Bytes

Installing Docker and Docker Compose on AWS EC2

Install Docker official AWS ECS install docker getting started

Installing Docker Compose

sudo curl -L --fail https://github.com/docker/compose/releases/download/v2.2.3/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose

sudo chmod -v +x /usr/local/bin/docker-compose

Make docker-compose available as docker compose for only the ec2 user

sudo mkdir -p $HOME/.docker/cli-plugins
sudo cp /usr/local/bin/docker-compose $HOME/.docker/cli-plugins

Make docker-compose available as docker compose system-wide

sudo mkdir -p /usr/local/lib/docker/cli-plugins
sudo cp /usr/local/bin/docker-compose /usr/local/lib/docker/cli-plugins

Check other install destination on the docker compose README.md