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

Method Push

pkg/composer/push.go:34–42  ·  view source on GitHub ↗
(ctx context.Context, po PushOptions, services []string)

Source from the content-addressed store, hash-verified

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

Callers 4

PushFunction · 0.80
pushManifestFunction · 0.80
pushManifestListFunction · 0.80
pushActionFunction · 0.80

Calls 2

pushServiceImageMethod · 0.95
ParseFunction · 0.92

Tested by

no test coverage detected