18
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.

DockerとDocker Composeをインストール

Last updated at Posted at 2016-06-01

Ubuntu16.04にインストールしたときのメモ

Dockerインストール

apt-getでインストールすると古いバージョンが入ってしまうので
apt-getではインストールしない

# rootになっておく
sudo su -

# インストール
wget -qO- https://get.docker.com/ | sh
docker version

# 作業ユーザーをdockerグループに追加
# dockerコマンドが実行できるのははrootかdockerグループである必要がある
exit
sudo usermod -aG docker $USER

docker-composeインストール

最新バージョンを確認しておく
https://github.com/docker/compose/releases/

# rootで実行
sudo su
curl -L https://github.com/docker/compose/releases/download/1.7.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
docker-compose version
18
17
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
18
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?