adding "fig pull [SERVICE]" to pull service images
Fixes #158 Signed-off-by: Luke Amdor <luke.amdor@gmail.com>
This commit is contained in:
parent
dc857a7ad5
commit
e51851c884
4 changed files with 24 additions and 1 deletions
|
|
@ -401,6 +401,11 @@ class Service(object):
|
|||
return False
|
||||
return True
|
||||
|
||||
def pull(self):
|
||||
if 'image' in self.options:
|
||||
log.info('Pulling %s (%s)...' % (self.name, self.options.get('image')))
|
||||
self.client.pull(self.options.get('image'))
|
||||
|
||||
|
||||
NAME_RE = re.compile(r'^([^_]+)_([^_]+)_(run_)?(\d+)$')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue