mirror of
https://github.com/containers/podman-compose.git
synced 2025-02-10 15:31:05 +01:00
Fix override of the run command
If there's no command defined in the arguments, `podman-compose run` should use the command defined in docker-compose.yml
This commit is contained in:
parent
c5f8973bd5
commit
169eaee9b2
@ -1121,6 +1121,7 @@ def compose_run(compose, args):
|
|||||||
# TODO: handle volumes
|
# TODO: handle volumes
|
||||||
pass
|
pass
|
||||||
cnt['tty']=False if args.T else True
|
cnt['tty']=False if args.T else True
|
||||||
|
if args.cnt_command is not None and len(args.cnt_command) > 0:
|
||||||
cnt['command']=args.cnt_command
|
cnt['command']=args.cnt_command
|
||||||
# run podman
|
# run podman
|
||||||
podman_args = container_to_args(compose, cnt, args.detach)
|
podman_args = container_to_args(compose, cnt, args.detach)
|
||||||
|
Loading…
Reference in New Issue
Block a user