containerd/images
Claudiu Belu 6b0b64a51a ctr: Fixes Windows image import
A previous commit made the Windows containerd/platforms.Default stricter
by requiring the OS Version to have a similar OS Version as the node's OS Version.

However, tar images (from docker save) do not have any OS Version information,
causing the containerd/import.Import's images.FilterPlatforms to filter out the image
entirely, which means that the images.SetChildrenLabels doesn't get to label
any children, which in turn will cause the Garbage Collector to remove content
related to the image.

This sets a default platform for the imported image if it's a Windows image which
doesn't have any OSVersion information, or if there's no platform information at
all.

Signed-off-by: Claudiu Belu <cbelu@cloudbasesolutions.com>
2021-09-02 19:27:28 -07:00
..
archive ctr: Fixes Windows image import 2021-09-02 19:27:28 -07:00
converter converter: use OpenWriter helper function 2021-04-15 19:05:10 +09:00
annotations.go Use a single custom annotation for export 2019-05-21 17:21:26 -07:00
diffid.go image: use generic decompressor for calculating DiffID 2021-03-31 10:21:47 +09:00
handlers.go Set content labels based on content type 2020-07-21 00:46:07 -07:00
image.go docs: Various typo found by codespell 2020-12-22 13:22:16 +08:00
importexport.go Refactor image importer 2018-09-14 14:21:26 -07:00
mediatypes.go add imgcrypt stream processors to the default config 2021-03-15 13:27:16 +09:00