dvm icon indicating copy to clipboard operation
dvm copied to clipboard

Error response from daemon: client and server don't have same version

Open mcandre opened this issue 10 years ago • 35 comments

When I try to setup docker with dvm, I get an error message:

FATA[0000] Error response from daemon: client and server don't have same version (client : 1.16, server: 1.14) 

Trace:

$ dvm up
Bringing machine 'dvm' up with 'virtualbox' provider...
==> dvm: Importing base box 'boot2docker-1.2.0'...
==> dvm: Matching MAC address for NAT networking...
==> dvm: Setting the name of the VM: dvm_dvm_1419118928038_21058
==> dvm: Clearing any previously set network interfaces...
==> dvm: Preparing network interfaces based on configuration...
    dvm: Adapter 1: nat
    dvm: Adapter 2: hostonly
==> dvm: Forwarding ports...
    dvm: 22 => 2222 (adapter 1)
==> dvm: Running 'pre-boot' VM customizations...
==> dvm: Booting VM...
==> dvm: Waiting for machine to boot. This may take a few minutes...
    dvm: SSH address: 127.0.0.1:2222
    dvm: SSH username: docker
    dvm: SSH auth method: private key
    dvm: Warning: Connection timeout. Retrying...
    dvm: 
    dvm: Vagrant insecure key detected. Vagrant will automatically replace
    dvm: this with a newly generated keypair for better security.
    dvm: 
    dvm: Inserting generated public key within guest...
    dvm: Removing insecure key from the guest if its present...
    dvm: Key inserted! Disconnecting and reconnecting using new SSH key...
==> dvm: Machine booted and ready!
No installation found.
The guest's platform is currently not supported, will try generic Linux method...
Copy iso file /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
Installing Virtualbox Guest Additions 4.3.20 - guest version is 
mkdir: can't create directory '/tmp/selfgz85231093': No such file or directory
Cannot create target directory /tmp/selfgz85231093
You should try option --target OtherDirectory
An error occurred during installation of VirtualBox Guest Additions 4.3.20. Some functionality may not work as intended.
In most cases it is OK that the "Window System drivers" installation failed.
==> dvm: Checking for guest additions in VM...
    dvm: No guest additions were detected on the base box for this VM! Guest
    dvm: additions are required for forwarded ports, shared folders, host only
    dvm: networking, and more. If SSH fails on this machine, please install
    dvm: the guest additions and repackage the box to continue.
    dvm: 
    dvm: This is not an error message; everything may continue to work properly,
    dvm: in which case you may ignore this message.
==> dvm: Configuring and enabling network interfaces...
==> dvm: Running provisioner: shell...
    dvm: Running: inline script
==> dvm: boot2docker: 1.2.0
$ eval $(dvm env)
$ docker images
FATA[0000] Error response from daemon: client and server don't have same version (client : 1.16, server: 1.14) 

System:

$ specs dvm docker vagrant virtualbox brew os
Specs:

specs 0.12
https://github.com/mcandre/specs#readme

dvm --version
dvm: 0.9.0

docker --version
Docker version 1.4.1, build 5bc2ff8

vagrant --version
Vagrant 1.7.1

vboxwebsrv --help 2>&1 | grep VirtualBox
Oracle VM VirtualBox web service Version 4.3.20

brew --version
0.9.5

system_profiler SPSoftwareDataType | grep 'System Version'
      System Version: OS X 10.10.1 (14B25)

mcandre avatar Dec 20 '14 23:12 mcandre

I'm having the same version, using boot2docker I could just run boot2docker download and get the newest version.

tlehman avatar Dec 24 '14 00:12 tlehman

Had same issue. Workaround here: https://github.com/boot2docker/boot2docker/issues/481

Terminal:

boot2docker --iso-url=https://github.com/boot2docker/boot2docker/releases/download/v1.4.1/boot2docker.iso download
boot2docker init

Also, might need to clean up VirtualBox if the previous boot2docker instance is still running.

ghost avatar Jan 04 '15 05:01 ghost

i'm having this issue right now with boot2docker 1.5 and the workaround didn't work

mgenev avatar Feb 23 '15 00:02 mgenev

I am also having this issue with boot2Docker 1.5.

saurabh-agrawal83 avatar Feb 26 '15 19:02 saurabh-agrawal83

Me too. Docker version and boot2docker version are at 1.5, but getting this when I try to build a docker image: Error response from daemon: client and server don't have same version (client : 1.17, server: 1.15)

rmacdonaldsmith avatar Feb 27 '15 05:02 rmacdonaldsmith

I solved this issue by doing this.

$ boot2docker stop
$ boot2docker download
$ boot2docker up

ericlarssen-wf avatar Feb 27 '15 19:02 ericlarssen-wf

@ericlarssen-wf thanks that worked me.

harishbsrinivas avatar Mar 04 '15 09:03 harishbsrinivas

Could we please update the version of boot2docker used by dvm? I still get:

$ docker images
FATA[0000] Error response from daemon: client and server don't have same version (client : 1.17, server: 1.14)

$ specs docker dvm vagrant virtualbox brew-cask brew os
Specs:

specs 0.13
https://github.com/mcandre/specs#readme

docker --version
Docker version 1.5.0, build a8a31ef

dvm --version
dvm: 0.9.0

vagrant --version
Vagrant 1.7.2

vboxwebsrv --help 2>&1 | grep VirtualBox
Oracle VM VirtualBox web service Version 4.3.24

brew-cask --version
0.53.3

brew --version
0.9.5

system_profiler SPSoftwareDataType | grep 'System Version'
      System Version: OS X 10.10.2 (14C109)

mcandre avatar Mar 06 '15 15:03 mcandre

thanks @ericlarssen-wf, that got me unblocked.

BrianHutchison avatar Mar 06 '15 18:03 BrianHutchison

+1 to @ericlarssen-wf!

matthewpbyrne avatar Mar 11 '15 11:03 matthewpbyrne

+1 to @ericlarssen-wf that worked

lekansogunle avatar Mar 12 '15 17:03 lekansogunle

+1 @ericlarssen-wf

ryanhanks-wf avatar Mar 14 '15 00:03 ryanhanks-wf

+1 @ericlarssen-wf

intuitivepixel avatar Mar 14 '15 23:03 intuitivepixel

@ericlarssen-wf - 'boot2docker stop' gives me "boot2docker: command not found". I tried to brew install boot2docker separately but that didn't work.

Any ideas? Be nice to get this ticket fixed properly to help noobs like me!

andybak avatar Mar 15 '15 12:03 andybak

@andybak Are you sure your Homebrew bin directory is correctly added to PATH? Can you find other programs installed with Homebrew, like brew install maven && mvn?

mcandre avatar Mar 15 '15 14:03 mcandre

@mcandre - Yeah otherwise dvm command would also have failed - it's working now so must have been just a brain failure at the time...

andybak avatar Mar 16 '15 11:03 andybak

thank you @ericlarssen-wf

rene-o avatar Mar 17 '15 13:03 rene-o

thank you @ericlarssen-wf. That did the trick !

digen avatar Mar 28 '15 17:03 digen

+1 @ericlarssen-wf

tuongaz avatar Apr 07 '15 12:04 tuongaz

Solved this with the following one liner:

boot2docker stop && boot2docker download && boot2docker up

nmadhok avatar Apr 14 '15 14:04 nmadhok

boot2docker stop && boot2docker download && boot2docker up

it works

Awezome avatar Apr 20 '15 12:04 Awezome

Thank you very much I had the same issue upon fresh installation and the above steps (stop, download, up) helped fix it.

kmouss avatar Apr 23 '15 07:04 kmouss

@ericlarssen-wf :+1:

xiaocong avatar Apr 30 '15 09:04 xiaocong

@nmadhok :+1: thanks

daverogers avatar May 01 '15 23:05 daverogers

@ericlarssen-wf +1 Thank you.

deitch avatar May 10 '15 05:05 deitch

@ericlarssen-wf You rock!

shaunc869 avatar May 21 '15 21:05 shaunc869

@ericlarssen-wf You rock!

yunsong0922 avatar May 30 '15 14:05 yunsong0922

@ericlarssen-wf Thanks it worked for me too.

hzhu avatar Jun 01 '15 20:06 hzhu

@ericlarssen-wf you are my idol

nickjoyce-wf avatar Jun 04 '15 18:06 nickjoyce-wf

I owe my life to you @ericlarssen-wf

danielbruns avatar Jun 04 '15 18:06 danielbruns