Procházet zdrojové kódy

Request pull credentials when using trusted reference

Signed-off-by: cyli <cyli@twistedmatrix.com>
(cherry picked from commit df9cc3d9228cb07474dd046736c6f83513c4923d)
cyli před 9 roky
rodič
revize
a5b5bdbbb4
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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
 	// Resolve the Auth config relevant for this server
 	authConfig := cli.resolveAuthConfig(repoInfo.Index)
 	authConfig := cli.resolveAuthConfig(repoInfo.Index)
 
 
-	notaryRepo, err := cli.getNotaryRepository(repoInfo, authConfig)
+	notaryRepo, err := cli.getNotaryRepository(repoInfo, authConfig, "pull")
 	if err != nil {
 	if err != nil {
 		fmt.Fprintf(cli.out, "Error establishing connection to trust repository: %s\n", err)
 		fmt.Fprintf(cli.out, "Error establishing connection to trust repository: %s\n", err)
 		return nil, err
 		return nil, err