Skip to content

Commit fbff315

Browse files
FIXES #464: accept -v in run
1 parent fc34703 commit fbff315

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

podman_compose.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2127,7 +2127,7 @@ def compose_run(compose, args):
21272127
container_name = container_names[0]
21282128
cnt = dict(compose.container_by_name[container_name])
21292129
deps = cnt["_deps"]
2130-
if not args.no_deps:
2130+
if deps and not args.no_deps:
21312131
up_args = argparse.Namespace(
21322132
**dict(
21332133
args.__dict__,
@@ -2167,7 +2167,9 @@ def compose_run(compose, args):
21672167
pass
21682168
if args.volume:
21692169
# TODO: handle volumes
2170-
pass
2170+
volumes = clone(cnt.get("volumes", None) or [])
2171+
volumes.extend(args.volume)
2172+
cnt["volumes"] = volumes
21712173
cnt["tty"] = not args.T
21722174
if args.cnt_command is not None and len(args.cnt_command) > 0:
21732175
cnt["command"] = args.cnt_command

0 commit comments

Comments
 (0)