Skip to content

Commit 295ba91

Browse files
chore: clarify image auth warning message for public images (#3228)
Co-authored-by: Steven Hartland <[email protected]>
1 parent ea392e9 commit 295ba91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1428,7 +1428,7 @@ func (p *DockerProvider) ReuseOrCreateContainer(ctx context.Context, req Contain
14281428
func (p *DockerProvider) attemptToPullImage(ctx context.Context, tag string, pullOpt image.PullOptions) error {
14291429
registry, imageAuth, err := DockerImageAuth(ctx, tag)
14301430
if err != nil {
1431-
p.Logger.Printf("Failed to get image auth for %s. Setting empty credentials for the image: %s. Error is: %s", registry, tag, err)
1431+
p.Logger.Printf("No image auth found for %s. Setting empty credentials for the image: %s. This is expected for public images. Details: %s", registry, tag, err)
14321432
} else {
14331433
// see https://github.com/docker/docs/blob/e8e1204f914767128814dca0ea008644709c117f/engine/api/sdk/examples.md?plain=1#L649-L657
14341434
encodedJSON, err := json.Marshal(imageAuth)

0 commit comments

Comments
 (0)