2017-06-14 54 views
2

我有一個完整的基礎架構,包括Docker羣多節點和水平可伸縮性。羣集模式滾動更新進度

我使用docker service update無中斷地部署我的應用程序的新版本。

我現在正在使用chatbot從Slack部署我的應用程序,有沒有辦法跟蹤更新的進度?我沒有看到任何事件或網絡掛接來管理

這是非常可怕的推出更新的服務沒有任何信息/輸出

回答

0

在泊塢窗17.05,一個新的選項--detach, -d引入泊塢窗服務創建和更新。

像往常一樣沒有太多的文檔。你可以檢查pull。並且有一個稍微過時的demo

這就是我在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... 
+0

好吧謝謝你,我現在可以用它 –