Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: docker service update with
--detach=false
hangs on services wi… (
#104) * fix: docker service update with `--detach=false` hangs on services with 0 tasks read more here: docker/cli#627 * refactor: use $(...) notation instead of legacy backticks `...` * refactor: `tasks_num` variable renamed to `num_tasks` * refactor: use `-f` for filtering service by name
- Loading branch information
b7c010a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the service is in
replicated
mode, you may also want to add--replicas=0
to avoid starting a task after updating.b7c010a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add some additional comments after comparing this to my own fix.
--filter
to thedocker service ls
command, you can also add--format {{.Replicas}}
to avoid using theawk
.Replicated Job
, which is different fromReplicated
. The output of the Replicas column looks like1/1 (3/5 completed)
. Since you are usingawk
, I guess it may work.