1
0

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 1 year has passed since last update.

Ubuntu 20.04 EC2でdocker-composeのV1をインストール

Posted at

EC2でDocker-composeにハマったインストール

環境

OS

ubuntu:/usr/local/bin$ lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.3 LTS
Release:        20.04
Codename:       focal

Docker

$ docker -v
Docker version 20.10.9, build c2ea9bc

はまりどこ

  • V1.xとV2.xだとインストール方式が異なる

以下の記事のようなエラーが発生

インストールを実行

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

docker compose - Ubuntu 20.04でdocker-composeを公式のGithubリポジトリから正常に導入されたそうに見えるが「command not found」エラーが発生 - スタック・オーバーフロー

V1をインストール

v1.29をインストール

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

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   664  100   664    0     0   3059      0 --:--:-- --:--:-- --:--:--  3059
100 12.1M  100 12.1M    0     0  8090k      0  0:00:01  0:00:01 --:--:-- 11.8M
$ docker-compose -v
docker-compose version 1.29.0, build 07737305
1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?