Merge pull request #2041 from ggtools/master
Add new --pull option in build.
This commit is contained in:
commit
3e58003bd3
5 changed files with 49 additions and 10 deletions
|
|
@ -701,7 +701,7 @@ class Service(object):
|
|||
ipc_mode=options.get('ipc')
|
||||
)
|
||||
|
||||
def build(self, no_cache=False):
|
||||
def build(self, no_cache=False, pull=False):
|
||||
log.info('Building %s' % self.name)
|
||||
|
||||
path = self.options['build']
|
||||
|
|
@ -715,7 +715,7 @@ class Service(object):
|
|||
tag=self.image_name,
|
||||
stream=True,
|
||||
rm=True,
|
||||
pull=False,
|
||||
pull=pull,
|
||||
nocache=no_cache,
|
||||
dockerfile=self.options.get('dockerfile', None),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue