Docker - Error response from daemon: client is newer than server

Marc Perrin-Pelletier picture Marc Perrin-Pelletier · Dec 1, 2015 · Viewed 17.1k times · Source

After creating a new machine with Docker Machine, I'm getting the following error:

enter image description here

$ docker ps
Error response from daemon: client is newer than server(client API version 1.21, server API version: 1.19)

How can I fix this?

Answer

Marc Perrin-Pelletier picture Marc Perrin-Pelletier · Dec 1, 2015
docker-machine upgrade <your-machine>

will do the trick. This can happen - as it did for me - even if you're not using RCs and your machine was newly created. It would be due to an ISO cache issue. The error is commented in this thread.

If the docker client is 1.9.x and the server is running docker 1.8.x, the error message is observed.