Merge pull request #490 from LuminosoInsight/insecure-pull

Allow pulls from an insecure registry
This commit is contained in:
Aanand Prasad 2014-10-01 10:52:54 -07:00
commit 431fdaa0f1
5 changed files with 25 additions and 7 deletions

View file

@ -423,10 +423,13 @@ class Service(object):
return False
return True
def pull(self):
def pull(self, insecure_registry=False):
if 'image' in self.options:
log.info('Pulling %s (%s)...' % (self.name, self.options.get('image')))
self.client.pull(self.options.get('image'))
self.client.pull(
self.options.get('image'),
insecure_registry=insecure_registry
)
NAME_RE = re.compile(r'^([^_]+)_([^_]+)_(run_)?(\d+)$')