Fix #923, support image with ids instead of names.

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
Daniel Nephin 2015-04-24 11:11:01 -04:00
commit 3dd860f0ba
4 changed files with 49 additions and 30 deletions

View file

@ -22,7 +22,7 @@ class DockerClientTestCase(unittest.TestCase):
self.client.remove_image(i)
def create_service(self, name, **kwargs):
kwargs['image'] = "busybox:latest"
kwargs['image'] = kwargs.pop('image', 'busybox:latest')
if 'command' not in kwargs:
kwargs['command'] = ["/bin/sleep", "300"]