ことなく、サービスの更新を起動することは非常に怖いです
ことを管理するために、任意のイベントやウェブフックを見ていない、新しいオプション
--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...
ありがとう、私は今のところそれを使用することができます –