Docker で client is newer than server と怒られたら docker-machine upgrade する

  • 18
    いいね
  • 0
    コメント
この記事は最終更新日から1年以上が経過しています。
[hoge@localhost ~]$ docker ps
Error response from daemon: client is newer than server (client API version: 1.23, server API version: 1.22)

Docker のメジャーアプデ時はありそうな予感。
これが出たら Docker ホストのアップグレードが必要です。

docker-machine upgrade [MACHINE_NAME...] を実行すれば OK

[hoge@localhost ~]$ docker-machine upgrade default
Waiting for SSH to be available...
Detecting the provisioner...
Upgrading docker...
Stopping machine to do the upgrade...
Upgrading machine "default"...
Default Boot2Docker ISO is out-of-date, downloading the latest release...
Latest release for github.com/boot2docker/boot2docker is v1.11.0
Downloading /Users/hoge/.docker/machine/cache/boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v1.11.0/boot2docker.iso...
0%....10%....20%....30%....40%....50%....60%....70%....80%....90%....100%
Copying /Users/hoge/.docker/machine/cache/boot2docker.iso to /Users/hoge/.docker/machine/machines/default/boot2docker.iso...
Starting machine back up...
(default) Check network to re-create if needed...
(default) Waiting for an IP...
Restarting docker...

完了っぽい

[hoge@localhost ~] $ eval $(docker-machine env default)
[hoge@localhost ~] $ docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                      PORTS               NAMES

よすよす。