浏览代码

Request pull credentials when using trusted reference

Signed-off-by: cyli <cyli@twistedmatrix.com>
cyli 9 年之前
父节点
当前提交
df9cc3d922
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api/client/trust.go

+ 1 - 1
api/client/trust.go

@@ -252,7 +252,7 @@ func (cli *DockerCli) trustedReference(ref reference.NamedTagged) (reference.Can
 	// Resolve the Auth config relevant for this server
 	authConfig := cli.resolveAuthConfig(repoInfo.Index)
 
-	notaryRepo, err := cli.getNotaryRepository(repoInfo, authConfig)
+	notaryRepo, err := cli.getNotaryRepository(repoInfo, authConfig, "pull")
 	if err != nil {
 		fmt.Fprintf(cli.out, "Error establishing connection to trust repository: %s\n", err)
 		return nil, err