浏览代码

Win32 interactive run - Connect container to networks before starting

Signed-off-by: Joffrey F <[email protected]>
Joffrey F 9 年之前
父节点
当前提交
6aacf51427
共有 1 个文件被更改,包括 1 次插入0 次删除
  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(