(ctx context.Context, dockerCLI command.Cli, opts inspectOptions)
| 45 | } |
| 46 | |
| 47 | func runInspect(ctx context.Context, dockerCLI command.Cli, opts inspectOptions) error { |
| 48 | apiClient := dockerCLI.Client() |
| 49 | return inspect.Inspect(dockerCLI.Out(), opts.refs, opts.format, func(ref string) (any, []byte, error) { |
| 50 | res, err := apiClient.ContainerInspect(ctx, ref, client.ContainerInspectOptions{Size: opts.size}) |
| 51 | if err != nil { |
| 52 | return nil, nil, err |
| 53 | } |
| 54 | return &res.Container, res.Raw, nil |
| 55 | }) |
| 56 | } |
no test coverage detected
searching dependent graphs…