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

Function runInspect

cli/command/container/inspect.go:47–56  ·  view source on GitHub ↗
(ctx context.Context, dockerCLI command.Cli, opts inspectOptions)

Source from the content-addressed store, hash-verified

45}
46
47func 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}

Callers 1

newInspectCommandFunction · 0.70

Calls 4

ContainerInspectMethod · 0.80
ClientMethod · 0.65
InspectMethod · 0.65
OutMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…