瀏覽代碼

Update messages about docker stack deploy.

Signed-off-by: Daniel Nephin <[email protected]>
Daniel Nephin 9 年之前
父節點
當前提交
c26a2afaf3
共有 2 個文件被更改,包括 3 次插入5 次删除
  1. 2 2
      compose/config/config.py
  2. 1 3
      compose/project.py

+ 2 - 2
compose/config/config.py

@@ -334,8 +334,8 @@ def load(config_details):
     if services_using_deploy:
         log.warn(
             "Some services ({}) use the 'deploy' key, which will be ignored. "
-            "Compose does not support deploy configuration - use the experimental "
-            "`docker deploy` command to deploy to a swarm."
+            "Compose does not support deploy configuration - use "
+            "`docker stack deploy` to deploy to a swarm."
             .format(", ".join(sorted(s['name'] for s in services_using_deploy))))
 
     return Config(main_file.version, service_dicts, volumes, networks)

+ 1 - 3
compose/project.py

@@ -559,9 +559,7 @@ def warn_for_swarm_mode(client):
             "Compose does not use swarm mode to deploy services to multiple nodes in a swarm. "
             "All containers will be scheduled on the current node.\n\n"
             "To deploy your application across the swarm, "
-            "use the bundle feature of the Docker experimental build.\n\n"
-            "More info:\n"
-            "https://docs.docker.com/compose/bundles\n"
+            "use `docker stack deploy`.\n"
         )