From d3d594d0b6d00cef208041a4d44338fddb089e9b Mon Sep 17 00:00:00 2001 From: Damon Jablons Date: Tue, 1 Apr 2014 15:20:13 -0400 Subject: [PATCH] Allow volumes_from to be an iterable --- docker/client.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/client.py b/docker/client.py index 1a4eaa30..ae5a99fc 100644 --- a/docker/client.py +++ b/docker/client.py @@ -155,6 +155,9 @@ class Client(requests.Session): volumes_dict[vol] = {} volumes = volumes_dict + if not isinstance(volumes_from, six.string_types): + volumes_from = ','.join(volumes_from) + attach_stdin = False attach_stdout = False attach_stderr = False