Add support for the --entrypoint option of docker run

Signed-off-by: Satoru Logic <satorulogic@gmail.com>
This commit is contained in:
satoru 2014-08-17 20:13:28 +08:00 • committed by Ben Firshman
commit 62b9c64311
5 changed files with 27 additions and 1 deletions

View file

@ -89,7 +89,9 @@ class Container(object):
@property
def human_readable_command(self):
return ' '.join(self.get('Config.Cmd') or '')
entrypoint = self.get('Config.Entrypoint') or []
cmd = self.get('Config.Cmd') or []
return ' '.join(entrypoint + cmd)
@property
def environment(self):