LoginSignup
2
3

More than 3 years have passed since last update.

AmazonLinux2にDockerとdocker-composeをインストールする

Last updated at Posted at 2019-10-05

環境

  • AmazonLinux2

手順

  1. Dockerインストール

    sudo amazon-linux-extras install docker -y # sudo yum install docker -y
    sudo systemctl enable docker
    sudo systemctl start docker
    
  2. 初期設定(sudoなしでdockerコマンドを実行する)

    sudo gpasswd -a $USER docker
    sudo systemctl restart docker
    exit # 再ログインすると反映される
    
  3. docker-composeインストール
    バージョンはここから選ぶ

    curl -L https://github.com/docker/compose/releases/download/1.24.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
    chmod +x /usr/local/bin/docker-compose
    
2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3