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

Function runPull

cmd/compose/pull.go:101–122  ·  cmd/compose/pull.go::runPull
(ctx context.Context, dockerCli command.Cli, backendOptions *BackendOptions, opts pullOptions, services []string)

Source from the content-addressed store, hash-verified

99}
100
101func runPull(ctx context.Context, dockerCli command.Cli, backendOptions *BackendOptions, opts pullOptions, services []string) error {
102 backend, err := compose.NewComposeService(dockerCli, backendOptions.Options...)
103 if err != nil {
104 return err
105 }
106
107 project, _, err := opts.ToProject(ctx, dockerCli, backend, services, cli.WithoutEnvironmentResolution)
108 if err != nil {
109 return err
110 }
111
112 project, err = opts.apply(project, services)
113 if err != nil {
114 return err
115 }
116
117 return backend.Pull(ctx, project, api.PullOptions{
118 Quiet: opts.quiet,
119 IgnoreFailures: opts.ignorePullFailures,
120 IgnoreBuildable: opts.noBuildable,
121 })
122}

Callers 1

pullCommandFunction · 0.85

Calls 4

NewComposeServiceFunction · 0.92
PullMethod · 0.65
ToProjectMethod · 0.45
applyMethod · 0.45

Tested by

no test coverage detected