(ctx context.Context, dockerCLI command.Cli, opts *unpauseOptions)
| 41 | } |
| 42 | |
| 43 | func runUnpause(ctx context.Context, dockerCLI command.Cli, opts *unpauseOptions) error { |
| 44 | apiClient := dockerCLI.Client() |
| 45 | errChan := parallelOperation(ctx, opts.containers, func(ctx context.Context, container string) error { |
| 46 | _, err := apiClient.ContainerUnpause(ctx, container, client.ContainerUnpauseOptions{}) |
| 47 | return err |
| 48 | }) |
| 49 | var errs []error |
| 50 | for _, ctr := range opts.containers { |
| 51 | if err := <-errChan; err != nil { |
| 52 | errs = append(errs, err) |
| 53 | continue |
| 54 | } |
| 55 | _, _ = fmt.Fprintln(dockerCLI.Out(), ctr) |
| 56 | } |
| 57 | return errors.Join(errs...) |
| 58 | } |
no test coverage detected
searching dependent graphs…