Flag to skip all pull errors when pulling images.
Signed-off-by: Vojta Orgon <villlem@gmail.com>
This commit is contained in:
parent
bbc8b74c17
commit
c9083e21c8
8 changed files with 31 additions and 5 deletions
|
|
@ -769,7 +769,7 @@ class Service(object):
|
|||
return True
|
||||
return False
|
||||
|
||||
def pull(self):
|
||||
def pull(self, ignore_pull_failures=False):
|
||||
if 'image' not in self.options:
|
||||
return
|
||||
|
||||
|
|
@ -781,7 +781,14 @@ class Service(object):
|
|||
tag=tag,
|
||||
stream=True,
|
||||
)
|
||||
stream_output(output, sys.stdout)
|
||||
|
||||
try:
|
||||
stream_output(output, sys.stdout)
|
||||
except StreamOutputError as e:
|
||||
if not ignore_pull_failures:
|
||||
raise
|
||||
else:
|
||||
log.error(six.text_type(e))
|
||||
|
||||
|
||||
class Net(object):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue