Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
0
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

@toshiyukihina

DockerのClientとServerのバージョン違いのエラーを直す

現象

$ docker version
Client version: 1.6.0
Client API version: 1.18
Go version (client): go1.4.2
Git commit (client): 4749651
OS/Arch (client): darwin/amd64
FATA[0000] Error response from daemon: client and server don't have same version (client : 1.18, server: 1.16)

対応方法

$ boot2docker upgrade
docker is up to date (1.6.0), skipping upgrade...
boot2docker is up to date (v1.6.0), skipping upgrade...
Latest release for github.com/boot2docker/boot2docker is v1.6.0
Downloading boot2docker ISO image...
Success: downloaded https://github.com/boot2docker/boot2docker/releases/    download/v1.6.0/boot2docker.iso
    to /Users/hina/.boot2docker/boot2docker.iso
Waiting for VM and Docker daemon to start...
................ooo
Started.
Writing /Users/hina/.boot2docker/certs/boot2docker-vm/ca.pem
Writing /Users/hina/.boot2docker/certs/boot2docker-vm/cert.pem
Writing /Users/hina/.boot2docker/certs/boot2docker-vm/key.pem
Your environment variables are already set correctly.

確認

$ docker version
Client version: 1.6.0
Client API version: 1.18
Go version (client): go1.4.2
Git commit (client): 4749651
OS/Arch (client): darwin/amd64
Server version: 1.6.0
Server API version: 1.18
Go version (server): go1.4.2
Git commit (server): 4749651
OS/Arch (server): linux/amd64
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
0
Help us understand the problem. What are the problem?