mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Synchronous service create and service update
Change "service create" and "service update" to wait until the creation or update finishes, when --detach=false is specified. Show progress bars for the overall operation and for each individual task (when there are a small enough number of tasks), unless "-q" / "--quiet" is specified. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
This commit is contained in:
parent
91c86c7e26
commit
330a003533
13 changed files with 502 additions and 18 deletions
|
@ -125,7 +125,7 @@ func (out *progressOutput) WriteProgress(prog progress.Progress) error {
|
|||
if prog.Message != "" {
|
||||
formatted = out.sf.FormatStatus(prog.ID, prog.Message)
|
||||
} else {
|
||||
jsonProgress := jsonmessage.JSONProgress{Current: prog.Current, Total: prog.Total}
|
||||
jsonProgress := jsonmessage.JSONProgress{Current: prog.Current, Total: prog.Total, HideCounts: prog.HideCounts}
|
||||
formatted = out.sf.FormatProgress(prog.ID, prog.Action, &jsonProgress, prog.Aux)
|
||||
}
|
||||
_, err := out.out.Write(formatted)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue