MCPcopy Index your code
hub / github.com/docker/cli / runUnpause

Function runUnpause

cli/command/container/unpause.go:43–58  ·  view source on GitHub ↗
(ctx context.Context, dockerCLI command.Cli, opts *unpauseOptions)

Source from the content-addressed store, hash-verified

41}
42
43func 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}

Callers 1

newUnpauseCommandFunction · 0.85

Calls 3

parallelOperationFunction · 0.85
ClientMethod · 0.65
OutMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…