containerd/images
Phil Estes 4aff7431fe
Fix possibly incorrect media type default on import
As reported, running import twice without using the compress import
option means that the content store will have existing layers during the
second import and the existing code hardcodes existing layer media type
to compressed. This fixes the issue by actually reading the header bytes
from the store and setting the media type appropriately.

Signed-off-by: Phil Estes <estesp@amazon.com>
2022-01-25 14:11:20 -05:00
..
archive Fix possibly incorrect media type default on import 2022-01-25 14:11:20 -05:00
converter images/converter: remove deprecated types 2021-12-09 17:50:12 +01: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 feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
image_test.go images: validate document type before unmarshal 2021-11-15 11:54:11 -08:00
image.go feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
importexport.go Refactor image importer 2018-09-14 14:21:26 -07:00
mediatypes.go feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00