Allow pulls from an insecure registry
Signed-off-by: Jason Bernardino Alonso <jalonso@luminoso.com>
This commit is contained in:
parent
5d76d183b4
commit
1c5194e2ec
3 changed files with 17 additions and 6 deletions
|
|
@ -413,10 +413,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+)$')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue