Repository: libcloud
Updated Branches:
  refs/heads/trunk 238db6d96 -> 98c4fe0a0


check docker v1.23 API changes


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/29e82dc7
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/29e82dc7
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/29e82dc7

Branch: refs/heads/trunk
Commit: 29e82dc74cf5ec8c6ef70570ce3e670244f203b8
Parents: 0979444
Author: johnnyWalnut <[email protected]>
Authored: Fri Apr 28 14:06:59 2017 +0300
Committer: Anthony Shaw <[email protected]>
Committed: Mon Jun 19 10:21:38 2017 +1000

----------------------------------------------------------------------
 libcloud/container/drivers/docker.py | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/29e82dc7/libcloud/container/drivers/docker.py
----------------------------------------------------------------------
diff --git a/libcloud/container/drivers/docker.py 
b/libcloud/container/drivers/docker.py
index 877abe7..8fce78f 100644
--- a/libcloud/container/drivers/docker.py
+++ b/libcloud/container/drivers/docker.py
@@ -643,6 +643,8 @@ class DockerContainerDriver(ContainerDriver):
             state = ContainerState.STOPPED
         elif status.startswith('Up '):
             state = ContainerState.RUNNING
+        elif 'running' in status:
+            state = ContainerState.RUNNING
         else:
             state = ContainerState.STOPPED
         image = data.get('Image')

Reply via email to