title: docker api client/server version mismatch?
body: <p>docker version showing correct api version for both client and server when i run inside python it is throwing error as below.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code># docker version
  Client:
   Version:         1.12.6
   API version:     1.24
   Package version: docker-1.12.6-48.git0fdc778.el7.x86_64
   Go version:      go1.8.3
   Git commit:      0fdc778/1.12.6
   Built:           Thu Jul 20 00:06:39 2017
   OS/Arch:         linux/amd64
  
  Server:
   Version:         1.12.6
   API version:     1.24
   Package version: docker-1.12.6-48.git0fdc778.el7.x86_64
   Go version:      go1.8.3
   Git commit:      0fdc778/1.12.6
   Built:           Thu Jul 20 00:06:39 2017
   OS/Arch:         linux/amd64
  # </code></pre>
  </div>
  </div>
  </p>
  
  <p>But when i run with python it is throwing error as below.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code> # python
  Python 2.7.5 (default, Aug 29 2016, 10:12:21)
  [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; import docker
  &gt;&gt;&gt; client = docker.APIClient(base_url='unix://var/run/docker.sock')
  &gt;&gt;&gt; print client.version()
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/usr/lib/python2.7/site-packages/docker/api/daemon.py", line 177, in version
      return self._result(self._get(url), json=True)
    File "/usr/lib/python2.7/site-packages/docker/api/client.py", line 226, in _result
      self._raise_for_status(response)
    File "/usr/lib/python2.7/site-packages/docker/api/client.py", line 222, in _raise_for_status
      raise create_api_error_from_http_exception(e)
    File "/usr/lib/python2.7/site-packages/docker/errors.py", line 31, in create_api_error_from_http_exception
      raise cls(e, response=response, explanation=explanation)
  docker.errors.APIError: 400 Client Error: Bad Request ("client is newer than server (client API version: 1.30, server API version: 1.24)")
  &gt;&gt;&gt;</code></pre>
  </div>
  </div>
  </p>