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

Function inspectContainers

cli/command/system/inspect.go:100–108  ·  view source on GitHub ↗
(ctx context.Context, dockerCli command.Cli, getSize bool)

Source from the content-addressed store, hash-verified

98}
99
100func inspectContainers(ctx context.Context, dockerCli command.Cli, getSize bool) inspect.GetRefFunc {
101 return func(ref string) (any, []byte, error) {
102 res, err := dockerCli.Client().ContainerInspect(ctx, ref, client.ContainerInspectOptions{Size: getSize})
103 if err != nil {
104 return nil, nil, err
105 }
106 return res.Container, res.Raw, err
107 }
108}
109
110func inspectImages(ctx context.Context, dockerCli command.Cli) inspect.GetRefFunc {
111 return func(ref string) (any, []byte, error) {

Callers 1

inspectAllFunction · 0.85

Calls 2

ContainerInspectMethod · 0.80
ClientMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…