diff --git a/daemon/list.go b/daemon/list.go index 51e242a4c033d..1d1925f8fcb8a 100644 --- a/daemon/list.go +++ b/daemon/list.go @@ -592,7 +592,9 @@ func (daemon *Daemon) refreshImage(ctx context.Context, s *container.Snapshot, f if err != nil || ctr == nil { return nil, err } - opts.Platform = &ctr.Config.Platform + if ctr.Config.Platform.OS != "" { + opts.Platform = &ctr.Config.Platform + } } img, err := daemon.imageService.GetImage(ctx, tmpImage, opts)