Skip to content

Commit

Permalink
Include platform information in the docker pull msg
Browse files Browse the repository at this point in the history
Fix: moby#41838

Signed-off-by: Da McGrady <[email protected]>
  • Loading branch information
dkkb committed Aug 25, 2021
1 parent f91b0d3 commit ca0df5c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion distribution/pull_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,12 @@ func (p *v2Puller) pullV2Repository(ctx context.Context, ref reference.Named, pl
}

writeStatus(reference.FamiliarString(ref), p.config.ProgressOutput, layersDownloaded)

platformMsg := fmt.Sprintf("Platform: os: %s, architecture: %s, variant: %s",
p.config.Platform.OS,
p.config.Platform.Architecture,
p.config.Platform.Variant,
)
progress.Message(p.config.ProgressOutput, "", platformMsg)
return nil
}

Expand Down

0 comments on commit ca0df5c

Please sign in to comment.