forked from extern/podman-compose
make -t work and implement many tranforms
This commit is contained in:
parent
49ae85776c
commit
b99e7333f4
@ -189,10 +189,12 @@ def down(project_name, dirname, pods, containers):
|
|||||||
def container_to_args(cnt, dirname):
|
def container_to_args(cnt, dirname):
|
||||||
pod=cnt.get('pod') or ''
|
pod=cnt.get('pod') or ''
|
||||||
args=[
|
args=[
|
||||||
'podman', 'run', '--pod={}'.format(pod),
|
'podman', 'run',
|
||||||
'--name={}'.format(cnt.get('name')),
|
'--name={}'.format(cnt.get('name')),
|
||||||
|
'-d'
|
||||||
]
|
]
|
||||||
args.extend(['-d'])
|
if pod:
|
||||||
|
args.append('--pod={}'.format(pod))
|
||||||
if cnt.get('read_only'):
|
if cnt.get('read_only'):
|
||||||
args.append('--read-only')
|
args.append('--read-only')
|
||||||
for i in cnt.get('labels', []):
|
for i in cnt.get('labels', []):
|
||||||
|
Loading…
Reference in New Issue
Block a user