mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
daemon/create: Simplify GetImage args
`opts.params.Platform` is always nil inside this branch so we can omit it from the `GetImage` call to make it less confusing. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
@@ -78,7 +78,7 @@ func (daemon *Daemon) containerCreate(ctx context.Context, daemonCfg *configStor
|
||||
}
|
||||
|
||||
if opts.params.Platform == nil && opts.params.Config.Image != "" {
|
||||
img, err := daemon.imageService.GetImage(ctx, opts.params.Config.Image, backend.GetImageOpts{Platform: opts.params.Platform})
|
||||
img, err := daemon.imageService.GetImage(ctx, opts.params.Config.Image, backend.GetImageOpts{})
|
||||
if err != nil {
|
||||
return containertypes.CreateResponse{}, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user