Adachinですっ。
Docker-machineのバージョンアップがbrewで来たのですが、
docker infoやろうと思ったらこんなエラー出てきました。
1 2 |
$ docker info Error response from daemon: client is newer than server (client API version: 1.24, server API version: 1.23) |
どうやらサーバAPIのバージョンよりクライアントAPIバージョンの方が新しいよ!
と怒られたので、まずはDockerホストのバージョンアップをしましょう。
■Dockerホストのバージョンアップ
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
$ docker-machine upgrade docker01 Waiting for SSH to be available... Detecting the provisioner... Upgrading docker... Stopping machine to do the upgrade... Upgrading machine "docker01"... Default Boot2Docker ISO is out-of-date, downloading the latest release... Latest release for github.com/boot2docker/boot2docker is v1.12.0 Downloading /Users/adachin/.docker/machine/cache/boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v1 .12.0/boot2docker.iso... 0%....10%....20%....30%....40%....50%....60%....70%....80%....90%....100% Copying /Users/adachin/.docker/machine/cache/boot2docker.iso to /Users/adachin/.docker/machine/machines/docker01/boot2docker.iso.. Starting machine back up... (docker01) Check network to re-create if needed... (docker01) Waiting for an IP... Restarting docker... |
勝手に再起動されたのでもう一度evalで読み込ませます。
1 2 3 4 5 |
$ eval "$(docker-machine env docker01)" Error checking TLS connection: Error checking and/or regenerating the certs: There was an error validating certificates for host "192.16 8.99.100:2376": dial tcp 192.168.99.100:2376: getsockopt: connection refused You can attempt to regenerate them using 'docker-machine regenerate-certs [name]'. Be advised that this will trigger a Docker daemon restart which will stop running containers. |
あれ、ホスト側をもう一度restartかstopしろと出たのでstopしてstartしました。
1 2 3 4 5 6 7 8 9 10 11 12 |
$ docker-machine stop docker01 Stopping "docker01"... Machine "docker01" was stopped. $ docker-machine start docker01 Starting "docker01"... (docker01) Check network to re-create if needed... (docker01) Waiting for an IP... Machine "docker01" was started. Waiting for SSH to be available... Detecting the provisioner... Started machines may have new IP addresses. You may need to re-run the `docker-machine env` command. |
よさげ
1 |
$ eval "$(docker-machine env docker01)" |
1 2 3 4 5 6 |
$ docker info Containers: 7 Running: 7 Paused: 0 Stopped: 0 〜省略〜 |
よし!!!!
■まとめ
デリケートなDockerちゃん
0件のコメント