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

Function Pull

pkg/cmd/image/pull.go:36–43  ·  view source on GitHub ↗

Pull pulls an image specified by `rawRef`.

(ctx context.Context, client *containerd.Client, rawRef string, options types.ImagePullOptions)

Source from the content-addressed store, hash-verified

34
35// Pull pulls an image specified by `rawRef`.
36func Pull(ctx context.Context, client *containerd.Client, rawRef string, options types.ImagePullOptions) error {
37 _, err := EnsureImage(ctx, client, rawRef, options)
38 if err != nil {
39 return err
40 }
41
42 return nil
43}
44
45// EnsureImage pulls an image either from ipfs or from registry.
46func EnsureImage(ctx context.Context, client *containerd.Client, rawRef string, options types.ImagePullOptions) (*imgutil.EnsuredImage, error) {

Callers 1

pullActionFunction · 0.92

Calls 1

EnsureImageFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…