LoginSignup
12
12

More than 5 years have passed since last update.

Dockerのバージョンを上げる

Last updated at Posted at 2014-01-22

Dockerの勉強用メモ、続きです。

ときどきバージョンを確認しよう

dockerのイメージが要らなくなったので、削除しようと思ったら、うまく削除できないことがありました。
そういう場合は、ひとまずバージョンを確認。

vagrant@precise64:~/work$ docker version
Client version: 0.7.2
Go version (client): go1.2
Git commit (client): 28b162e
Server version: 0.7.2
Git commit (server): 28b162e
Go version (server): go1.2
Last stable version: 0.7.5, please update docker

最新バージョンと違うからupdateしてね、といった表示が…。

ubuntuはあまり良く知らないので、Upgrading の解説に従って、apt-get しました。
単純なdocker ではなくて、 lxc-docker なんですね。

手順

  • sudo apt-get update 実施
  • sudo apt-get install lxc-docker 実施で新しいバージョンへ更新。

確認ログ

以下、ログです。

vagrant@precise64:~/work$ sudo apt-get install lxc-docker
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  lxc-docker-0.7.5
The following packages will be REMOVED:
  lxc-docker-0.7.2
The following NEW packages will be installed:
  lxc-docker-0.7.5
The following packages will be upgraded:
  lxc-docker
1 upgraded, 1 newly installed, 1 to remove and 161 not upgraded.
Need to get 2,681 kB of archives.
After this operation, 185 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 https://get.docker.io/ubuntu/ docker/main lxc-docker amd64 0.7.5 [1,872 B]
Get:2 https://get.docker.io/ubuntu/ docker/main lxc-docker-0.7.5 amd64 0.7.5 [2,679 kB]
Fetched 2,681 kB in 55s (48.7 kB/s)                                                                                                                                                                              
(Reading database ... 81695 files and directories currently installed.)
Preparing to replace lxc-docker 0.7.2 (using .../lxc-docker_0.7.5_amd64.deb) ...
Unpacking replacement lxc-docker ...
(Reading database ... 81695 files and directories currently installed.)
Removing lxc-docker-0.7.2 ...
docker stop/waiting
Processing triggers for ureadahead ...
Selecting previously unselected package lxc-docker-0.7.5.
(Reading database ... 81693 files and directories currently installed.)
Unpacking lxc-docker-0.7.5 (from .../lxc-docker-0.7.5_0.7.5_amd64.deb) ...
Processing triggers for ureadahead ...
Setting up lxc-docker-0.7.5 (0.7.5) ...
docker start/running, process 2915
Setting up lxc-docker (0.7.5) ...

うまくいったようなので、バージョン確認します。

vagrant@precise64:~/work$ docker version
Client version: 0.7.5
Go version (client): go1.2
Git commit (client): c348c04
Server version: 0.7.5
Git commit (server): c348c04
Go version (server): go1.2
Last stable version: 0.7.5
12
12
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
12
12