Merge pull request #3718 from aanand/fix-run-entrypoint

Fix bugs with entrypoint/command in docker-compose run
This commit is contained in:
Daniel Nephin 2016-07-22 10:55:25 -04:00 • committed by GitHub
commit 10749e187c
6 changed files with 63 additions and 15 deletions

View file

@ -670,8 +670,10 @@ class TopLevelCommand(object):
'can not be used together'
)
if options['COMMAND']:
if options['COMMAND'] is not None:
command = [options['COMMAND']] + options['ARGS']
elif options['--entrypoint'] is not None:
command = []
else:
command = service.options.get('command')