Since --detach=false was not specified, tasks will be created in the background. In a future release, --detach=false will become the default.
docker service update --detach=false --update-failure-action rollback nginx
docker stack deploy --detach=false -c deploy.yml service_name1