群集模式滚动更新进度
我有一个完整的基础设施与Docker群多个节点和水平的可伸缩性。
我使用docker service update
来部署新版本的应用程序而不中断。
我现在正在使用一个聊天机器人来从Slack部署我的应用程序,有没有办法跟踪更新的进度? 我没有看到任何事件或webhooks来pipe理
没有任何信息/输出,启动服务更新是非常可怕的
在docker 17.05中,一个新选项--detach, -d
被引入到docker服务的创build和更新中。
还没有太多的文件,像往常一样。 你可以检查拉 。 还有一个稍微过时的演示 。
这是我17.05年得到的。
$ docker version Client: Version: 17.05.0-ce API version: 1.29 Go version: go1.7.5 Git commit: 89658be Built: Fri May 5 15:36:11 2017 OS/Arch: linux/amd64 Server: Version: 17.05.0-ce API version: 1.29 (minimum version 1.12) Go version: go1.7.5 Git commit: 89658be Built: Fri May 5 15:36:11 2017 OS/Arch: linux/amd64 Experimental: true $ docker service create --detach=false --name top --replicas 3 busybox top 804oco5lhezi2estr04ybbn2h overall progress: 3 out of 3 tasks 1/3: running 2/3: running 3/3: running verify: Waiting 1 seconds to verify that tasks are stable... $ docker service update --detach=false --replicas 5 top top overall progress: 5 out of 5 tasks 1/5: running 2/5: running 3/5: running 4/5: running 5/5: running verify: Waiting 1 seconds to verify that tasks are stable...