Explorar o código

Win32 interactive run - Connect container to networks before starting

Signed-off-by: Joffrey F <[email protected]>
Joffrey F %!s(int64=9) %!d(string=hai) anos
pai
achega
6aacf51427
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      compose/cli/main.py

+ 1 - 0
compose/cli/main.py

@@ -988,6 +988,7 @@ def run_one_off_container(container_options, project, service, options):
     try:
         try:
             if IS_WINDOWS_PLATFORM:
+                service.connect_container_to_networks(container)
                 exit_code = call_docker(["start", "--attach", "--interactive", container.id])
             else:
                 operation = RunOperation(