MCPcopy
hub / github.com/docker/compose / runConfigImages

Function runConfigImages

cmd/compose/config.go:504–519  ·  view source on GitHub ↗
(ctx context.Context, dockerCli command.Cli, opts configOptions, services []string)

Source from the content-addressed store, hash-verified

502}
503
504func runConfigImages(ctx context.Context, dockerCli command.Cli, opts configOptions, services []string) error {
505 backend, err := compose.NewComposeService(dockerCli)
506 if err != nil {
507 return err
508 }
509
510 project, err := opts.ToProject(ctx, dockerCli, backend, services)
511 if err != nil {
512 return err
513 }
514
515 for _, s := range project.Services {
516 _, _ = fmt.Fprintln(dockerCli.Out(), api.GetImageNameOrDefault(s, project.Name))
517 }
518 return nil
519}
520
521func runVariables(ctx context.Context, dockerCli command.Cli, opts configOptions, services []string) error {
522 opts.noInterpolate = true

Callers 1

configCommandFunction · 0.85

Calls 4

NewComposeServiceFunction · 0.92
GetImageNameOrDefaultFunction · 0.92
ToProjectMethod · 0.45
OutMethod · 0.45

Tested by

no test coverage detected