mirror of
https://github.com/moby/moby.git
synced 2026-08-02 22:26:52 +00:00
c8d/cache: Use the same cache logic as graphdrivers
Implement the cache adaptor for containerd image store and use the same cache logic. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
6
image/cache/compare.go
vendored
6
image/cache/compare.go
vendored
@@ -8,12 +8,6 @@ import (
|
||||
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
|
||||
)
|
||||
|
||||
// TODO: Remove once containerd image service directly uses the ImageCache and
|
||||
// LocalImageCache structs.
|
||||
func CompareConfig(a, b *container.Config) bool {
|
||||
return compare(a, b)
|
||||
}
|
||||
|
||||
func comparePlatform(builderPlatform, imagePlatform ocispec.Platform) bool {
|
||||
// On Windows, only check the Major and Minor versions.
|
||||
// The Build and Revision compatibility depends on whether `process` or
|
||||
|
||||
Reference in New Issue
Block a user