Alex Dai Playground

[AWS] amazon linux insatll docker & docker-compose

| Comments

install docker

$ sudo yum update
$ sudo yum install -y docker
$ sudo usermod -aG docker ec2-user
$ sudo service docker start

install docker-compose

$ sudo su

$ curl -L "https://github.com/docker/compose/releases/download/1.8.0/docker-compose-$(uname -s)-$(uname -m)" > /usr/local/bin/docker-compose

$ chmod +x /usr/local/bin/docker-compose

$ exit

$ docker-compose --version

Comments

comments powered by Disqus