Hướng dẫn cài đặt Docker Compose trên Amazon Linux AMI

Written by admin
Posted on Fri, 04/09/2021 - 11:11
247 views

Share Everywhere

Table of contents
  1. Create EC2 with Amazon Linux AMI
  2. Install Docker over it, click here for help
  3. Now to install docker-compose, run
    sudo curl -L https://github.com/docker/compose/releases/download/1.21.0/docker-compose-`uname -s`-`uname -m` | sudo tee /usr/local/bin/docker-compose > /dev/null
  4. For permission
    sudo chmod +x /usr/local/bin/docker-compose
  5. Create a symbolic link
    ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
  6. Check docker-compose version:
    docker-compose --version

Add new comment

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
6 + 1 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.
Profile picture for user admin
Câu nói tâm đắc: “Điều tuyệt với nhất trong cuộc sống là làm được những việc mà người khác tin là không thể!”