If you are building and getting the following error:

$ docker-compose build
Building ...

client and server don't have same version (client : 1.18, server: 1.17)

Try to upgrade your image using the following command:

$ docker-machine upgrade dev