From 21bcf7723f25b89f199f8d9b76b6c51f8a662542 Mon Sep 17 00:00:00 2001 From: Joffrey F Date: Thu, 12 Feb 2015 15:36:50 -0800 Subject: [PATCH] Added api_version property --- docker/client.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker/client.py b/docker/client.py index ef61a4db..f9202294 100644 --- a/docker/client.py +++ b/docker/client.py @@ -214,6 +214,10 @@ class Client(requests.Session): break yield data + @property + def api_version(self): + return self._version + def attach(self, container, stdout=True, stderr=True, stream=False, logs=False): if isinstance(container, dict):