Revert "docker/compose: quote health-cmd"
This reverts commit 9fbbad559d
.
This patch was wrong. We don't need the quotes because
we use subprocess and the args aren't parsed lie on
bash.
Change-Id: Ibd97df51b7eede9c8c617777bd5255d075954db2
Related-Bug: #1824808
This commit is contained in:
parent
dd9ca1a514
commit
90cf8bbb3e
|
@ -165,7 +165,7 @@ class ComposeV1Builder(object):
|
|||
if 'healthcheck' in cconfig:
|
||||
hconfig = cconfig['healthcheck']
|
||||
if 'test' in hconfig:
|
||||
cmd.append('--health-cmd="%s"' % hconfig['test'])
|
||||
cmd.append('--health-cmd=%s' % hconfig['test'])
|
||||
if 'interval' in hconfig:
|
||||
cmd.append('--health-interval=%s' % hconfig['interval'])
|
||||
if 'timeout' in hconfig:
|
||||
|
|
|
@ -424,7 +424,7 @@ three-12345678 three''', '', 0),
|
|||
'uts': 'host',
|
||||
'restart': 'always',
|
||||
'healthcheck': {
|
||||
'test': 'ls /mydir',
|
||||
'test': '/bin/true',
|
||||
'interval': '30s',
|
||||
'timeout': '10s',
|
||||
'retries': 3
|
||||
|
@ -442,7 +442,7 @@ three-12345678 three''', '', 0),
|
|||
['docker', 'run', '--name', 'one',
|
||||
'--detach=true', '--env-file=/tmp/foo.env',
|
||||
'--net=host', '--ipc=host', '--pid=container:bar',
|
||||
'--uts=host', '--health-cmd="ls /mydir"', '--health-interval=30s',
|
||||
'--uts=host', '--health-cmd=/bin/true', '--health-interval=30s',
|
||||
'--health-timeout=10s', '--health-retries=3',
|
||||
'--privileged=true', '--restart=always', '--user=bar',
|
||||
'--log-opt=tag={{.ImageName}}/{{.Name}}/{{.ID}}',
|
||||
|
|
Loading…
Reference in New Issue