MCPcopy Create free account
hub / github.com/containerd/nerdctl / Pull

Method Pull

pkg/composer/pull.go:35–43  ·  view source on GitHub ↗
(ctx context.Context, po PullOptions, services []string)

Source from the content-addressed store, hash-verified

33}
34
35func (c *Composer) Pull(ctx context.Context, po PullOptions, services []string) error {
36 return c.project.ForEachService(services, func(name string, svc *types.ServiceConfig) error {
37 ps, err := serviceparser.Parse(c.project, *svc)
38 if err != nil {
39 return err
40 }
41 return c.pullServiceImage(ctx, ps.Image, ps.Unparsed.Platform, ps, po)
42 })
43}
44
45func (c *Composer) pullServiceImage(ctx context.Context, image string, platform string, ps *serviceparser.Service, po PullOptions) error {
46 log.G(ctx).Infof("Pulling image %s", image)

Callers 2

PullFunction · 0.80
pullActionFunction · 0.80

Calls 2

pullServiceImageMethod · 0.95
ParseFunction · 0.92

Tested by

no test coverage detected