MCPcopy Create free account
hub / github.com/linuxkit/linuxkit / Pull

Method Pull

src/cmd/linuxkit/pkglib/dockerimpl.go:463–474  ·  view source on GitHub ↗
(img string)

Source from the content-addressed store, hash-verified

461}
462
463func (dr *dockerRunnerImpl) Pull(img string) (bool, error) {
464 err := dr.command(nil, nil, nil, "image", "pull", img)
465 if err == nil {
466 return true, nil
467 }
468 switch err.(type) {
469 case *exec.ExitError:
470 return false, nil
471 default:
472 return false, err
473 }
474}
475
476//nolint:unused // will be used when linuxkit cache is eliminated and we return to docker image cache
477func (dr dockerRunnerImpl) push(img string) error {

Callers

nothing calls this directly

Calls 1

commandMethod · 0.95

Tested by

no test coverage detected