File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments