2017-06-14 15 views
2

Dockerの複数のノードと水平スケーラビリティを備えたインフラストラクチャがあります。Swarmモードのローリングアップデートの進捗状況

私はdocker service updateを使用して、中断することなく新しいバージョンのアプリケーションを展開します。

私は現在、スラックからアプリケーションをデプロイするためのチャットボットに取り組んでいます。アップデートの進捗状況に従う方法はありますか?私はドッキングウィンドウ17.05で任意の情報/出力

答えて

0

ことなく、サービスの更新を起動することは非常に怖いです

ことを管理するために、任意のイベントやウェブフックを見ていない、新しいオプション --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

ありがとう、私は今のところそれを使用することができます –

関連する問題