Skip to content

Commit a5b5bdb

Browse files
cyliTibor Vass
authored andcommitted
Request pull credentials when using trusted reference
Signed-off-by: cyli <cyli@twistedmatrix.com> (cherry picked from commit df9cc3d)
1 parent 9e3bfd5 commit a5b5bdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/client/trust.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ func (cli *DockerCli) trustedReference(ref reference.NamedTagged) (reference.Can
252252
// Resolve the Auth config relevant for this server
253253
authConfig := cli.resolveAuthConfig(repoInfo.Index)
254254

255-
notaryRepo, err := cli.getNotaryRepository(repoInfo, authConfig)
255+
notaryRepo, err := cli.getNotaryRepository(repoInfo, authConfig, "pull")
256256
if err != nil {
257257
fmt.Fprintf(cli.out, "Error establishing connection to trust repository: %s\n", err)
258258
return nil, err

0 commit comments

Comments
 (0)