自分用メモ。
homebrewでboot2dockerを入れていて、久しぶりにboot2dockerを起動して、docker buildしようとしたら、clientとserverのバージョンが違うよ!というエラー。
rsakamoto% docker build -t centos_sample .
Sending build context to Docker daemon 2.048 kB
Sending build context to Docker daemon
FATA[0000] Error response from daemon: client and server don't have same version (client : 1.18, server: 1.15)
boot2dokerにはupgradeがあるので、それをするだけ。
rsakamoto% boot2docker upgrade
docker is up to date (1.6.2), skipping upgrade...
boot2docker is up to date (v1.6.2), skipping upgrade...
Latest release for github.com/boot2docker/boot2docker is v1.6.2
Downloading boot2docker ISO image...
Success: downloaded https://github.com/boot2docker/boot2docker/releases/download/v1.6.2/boot2docker.iso
to /Users/hogehoge/.boot2docker/boot2docker.iso
Waiting for VM and Docker daemon to start...
...............ooo
Started.
Writing /Users/hogehoge/.boot2docker/certs/boot2docker-vm/ca.pem
Writing /Users/hogehoge/.boot2docker/certs/boot2docker-vm/cert.pem
Writing /Users/hogehoge/.boot2docker/certs/boot2docker-vm/key.pem
Your environment variables are already set correctly.
無事にビルドが始まりました。
rsakamoto% docker build -t centos_sample .
Sending build context to Docker daemon 2.048 kB
Sending build context to Docker daemon
Step 0 : FROM centos:latest
latest: Pulling from centos
6941bfcbbfca: Pull complete
41459f052977: Pull complete
fd44297e2ddb: Already exists
centos:latest: The image you are pulling has been verified. Important: image verification is a tech preview feature and should not be relied on to provide security.
Digest: sha256:c4b99180376b1b898a5d4f2a1c86edb45690cf69034eef211d1c503b43487a62
Status: Downloaded newer image for centos:latest
---> fd44297e2ddb