37
38

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.

Amazon Linux に Docker Compose を install する方法

Posted at

から Install したい Docker Compose を探す。

を Install したいとすると、

curl -L https://github.com/docker/compose/releases/download/1.10.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

を行う。

docker-compose.yml

を用意し、

docker-compose up -d

すると、

ERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?

If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.

などとでる。

Docker version 1.12. などだと tcp ではなく unix domain socket でやっているため、上記 docker-compose コマンドを実行したユーザにそれにアクセスできる権限を付与する必要がある。

例えば、
Dockerコマンドをsudoなしで実行する方法( http://qiita.com/DQNEO/items/da5df074c48b012152ee )
の方法などで解決する。

37
38
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
37
38

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?