In [6]:
from docker import Client
c = Client(base_url='unix://var/run/docker.sock',
                  version='1.12',
                  timeout=10)
c