Allow dependent image pull from insecure registry

PR #490 Provides the ability to pull from an insecure registry by passing --allow-insecure-ssl. This commit extends the work done in #490 and adds the ability to pass --allow-insecure-ssl to the up and run commands which will attempt to pull dependent images if they do not exist.

Signed-off-by: Tyler Rivera <riverat2@email.chop.edu>
This commit is contained in:
Tyler Rivera 2014-10-22 10:57:43 -04:00
commit 491181ec31
4 changed files with 54 additions and 22 deletions

View file

@ -167,7 +167,7 @@ class Project(object):
else:
log.info('%s uses an image, skipping' % service.name)
def up(self, service_names=None, start_links=True, recreate=True):
def up(self, service_names=None, start_links=True, recreate=True, insecure_registry=False):
running_containers = []
for service in self.get_services(service_names, include_links=start_links):
@ -175,7 +175,7 @@ class Project(object):
for (_, container) in service.recreate_containers():
running_containers.append(container)
else:
for container in service.start_or_create_containers():
for container in service.start_or_create_containers(insecure_registry=insecure_registry):
running_containers.append(container)
return running_containers