45
45

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.

MacにHomebrewで入れたboot2dockerとDockerをバージョンアップする

Last updated at Posted at 2014-08-03
brew update
brew upgrade docker boot2docker

で一発。ではない。

brew update
brew upgrade docker boot2docker

boot2docker delete
boot2docker download
boot2docker init
boot2docker up

brewからのupgradeだけだとboot2docker(VirtualBox)上のdockerは更新されないので、 boot2docker downloadでboot2dockerの最新イメージを落としてきてinitし直す必要がある。

docker version

Client version: 1.1.2
Client API version: 1.13
Go version (client): go1.3
Git commit (client): d84a070
Server version: 1.1.2
Server API version: 1.13
Go version (server): go1.2.1
Git commit (server): d84a070

docker versionでClient version(Mac側)とServer version(boot2docker側)の両方のバージョンが上がっていればバージョンアップ成功

参考
[小ネタ]Boot2dockerで実行するDocker VMのバージョンアップ

追記

久しぶりにdockerをupdateしてstartしようとしたら下記のように言われた。おそらく1.3?から追加されたパラメータ。

To connect the Docker client to the Docker daemon, please set:
    export DOCKER_CERT_PATH=/Users/****/.boot2docker/certs/boot2docker-vm
    export DOCKER_TLS_VERIFY=1
    export DOCKER_HOST=tcp://XXX.XXX.XXX.XXX:XXX

DOCKER_HOSTと同様にDOCKER_CERT_PATHとDOCKER_TLS_VERIFYを追加(コピペ)してやれば問題なく接続出来た。

docker version
Client version: 1.3.1
Client API version: 1.15
Go version (client): go1.3.3
Git commit (client): 4e9bbfa
OS/Arch (client): darwin/amd64
Server version: 1.3.1
Server API version: 1.15
Go version (server): go1.3.3
Git commit (server): 4e9bbfa
45
45
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
45
45

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?