瀏覽代碼

UPDATED log message

Signed-off-by: Zuhayr Elahi <[email protected]>
Zuhayr Elahi 6 年之前
父節點
當前提交
8835056ce4
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      compose/service.py

+ 1 - 3
compose/service.py

@@ -624,9 +624,7 @@ class Service(object):
             container.start()
         except APIError as ex:
             if "driver failed programming external connectivity" in ex.explanation:
-                log.warn(
-                    "Port is already in use, check the docker-compose file to see if the same" +
-                    " port was allocated to multiple services")
+                log.warn("Host is already in use by another container")
             raise OperationFailedError("Cannot start service %s: %s" % (self.name, ex.explanation))
         return container