错误提示

Since --detach=false was not specified, tasks will be created in the background. In a future release, --detach=false will become the default.

解决方法

  • 在部署命令里添加 —detach=false
docker service update --detach=false --update-failure-action rollback nginx
  • deploy
docker stack deploy --detach=false -c deploy.yml service_name1