1. username37

    Posted

    username37
Changes in title
+amazon linux2のrootでdocker-composeさせる方法
Changes in tags
Changes in body
Source | HTML | Preview
@@ -0,0 +1,17 @@
+ec2-userで行う
+sudo yum update -y
+sudo yum install -y docker
+sudo service docker start
+sudo chkconfig docker on
+sudo usermod -a -G docker ec2-user
+ログアウトして再ログイン
+docker --version
+
+最新版
+https://github.com/docker/compose/releases
+sudo chmod +x /usr/local/bin/docker-compose
+docker-compose --version
+
+ec2-userでテストしたあと
+sudo su
+ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose