16
17

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.

AWS Cloud9環境でdocker-composeをできるようにする

Posted at

はじめに

とある事情でAWS Cloud9でローカル開発環境をdockerで構築しようとした時の備忘録。

今回は全てデフォルト設定でAmazonLinuxのインスタンスを立ち上げました。
OSバージョンはこれ(Amazon Linux2じゃないんだね...)

$ cat /etc/system-release
Amazon Linux AMI release 2018.03

ちなみにDockerはデフォルトでセットアップされてました。

$ docker -v
Docker version 18.09.9-ce, build 039a7df

Docker-composeは存在しない模様

$ docker-compose -v
bash: docker-compose: command not found

導入手順

公式ドキュメントを参考に導入してみる

Docker Composeの現在の安定リリースバージョンをダウンロード

$ sudo curl -L "https://github.com/docker/compose/releases/download/1.25.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

実行権限を付与する

$ sudo chmod +x /usr/local/bin/docker-compose

動作確認

$ docker-compose -v
docker-compose version 1.25.0, build 0a186604

以上です。

16
17
1

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
16
17

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?