Fix #923, support image with ids instead of names.
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
parent
e6ec76161d
commit
3dd860f0ba
4 changed files with 49 additions and 30 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue