2
2

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.

boot2dockerで[client and server don't have same version]というエラーが出たら

Posted at

自分用メモ。

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
2
2
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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?