2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 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
```

  1. 初期設定(sudoなしでdockerコマンドを実行する)

sudo gpasswd -a $USER docker
sudo systemctl restart docker
exit # 再ログインすると反映される
```

  1. 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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?