mirror of
https://github.com/containers/podman-compose.git
synced 2025-04-28 03:18:46 +02:00
start detached
This commit is contained in:
parent
6a42d6861d
commit
cbed801c0d
@ -1123,7 +1123,9 @@ def compose_up(compose, args):
|
|||||||
for cnt in compose.containers:
|
for cnt in compose.containers:
|
||||||
podman_args = container_to_args(compose, cnt,
|
podman_args = container_to_args(compose, cnt,
|
||||||
detached=args.detach, podman_command=podman_command)
|
detached=args.detach, podman_command=podman_command)
|
||||||
compose.podman.run(podman_args)
|
subproc = compose.podman.run(podman_args)
|
||||||
|
if podman_command == 'run' and subproc.returncode:
|
||||||
|
compose.podman.run(['start', cnt['name']])
|
||||||
if args.no_start or args.detach or args.dry_run: return
|
if args.no_start or args.detach or args.dry_run: return
|
||||||
# TODO: handle already existing
|
# TODO: handle already existing
|
||||||
# TODO: if error creating do not enter loop
|
# TODO: if error creating do not enter loop
|
||||||
|
Loading…
Reference in New Issue
Block a user