Merge pull request #1344 from dnephin/fix_pull_with_sha
Support image with ids instead of names
This commit is contained in:
commit
7e0ab0714f
4 changed files with 49 additions and 30 deletions
|
|
@ -457,6 +457,11 @@ class ServiceTest(DockerClientTestCase):
|
|||
],
|
||||
})
|
||||
|
||||
def test_start_with_image_id(self):
|
||||
# Image id for the current busybox:latest
|
||||
service = self.create_service('foo', image='8c2e06607696')
|
||||
self.assertTrue(service.start_or_create_containers())
|
||||
|
||||
def test_scale(self):
|
||||
service = self.create_service('web')
|
||||
service.scale(1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue