mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Move image trust related cli methods into the image package.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
89bc5d54ca
commit
e7c9694d76
9 changed files with 604 additions and 580 deletions
|
@ -78,9 +78,9 @@ func runPull(dockerCli *command.DockerCli, opts pullOptions) error {
|
|||
|
||||
if command.IsTrusted() && !registryRef.HasDigest() {
|
||||
// Check if tag is digest
|
||||
err = dockerCli.TrustedPull(ctx, repoInfo, registryRef, authConfig, requestPrivilege)
|
||||
err = trustedPull(ctx, dockerCli, repoInfo, registryRef, authConfig, requestPrivilege)
|
||||
} else {
|
||||
err = dockerCli.ImagePullPrivileged(ctx, authConfig, distributionRef.String(), requestPrivilege, opts.all)
|
||||
err = imagePullPrivileged(ctx, dockerCli, authConfig, distributionRef.String(), requestPrivilege, opts.all)
|
||||
}
|
||||
if err != nil {
|
||||
if strings.Contains(err.Error(), "target is a plugin") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue