Help us understand the problem. What is going on with this article?

CentOS7にdockerとdocker-composeの最新版をインストールする

More than 3 years have passed since last update.

dockerとdocker-composeの最新版をインストールする手順。
関連記事はたくさんあるけど調べるのに少し手間がかかったのでまとめておく。

docker

次の 1 行で Docker 社のリポジトリから最新版の Docker Engine をインストールする。

$ curl -sSL https://get.docker.com/ | sh
$ doceker version

docker-compose

最新版のバージョンを下記リンクで確認する。
https://github.com/docker/compose/blob/master/CHANGELOG.md

Latest release は2016/08/13現在なら1.8.0.

注! 08/13現在、1.8.0 では下記はエラーになります。1.7.1 ならOKでした。

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

docker-compose のバージョンアップは rm & curl のやり直しになるみたい。
古い compose で up したコンテナと不整合しないか少し気になる。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした