Skip to content
Success

Changes

Summary

  1. imageService: Extract common code from `MakeImageCache` (details)
Commit e8496b1ee4bd00e5015f4d900d1740476704cd0e by Paweł Gronowski
imageService: Extract common code from `MakeImageCache`

Both containerd and graphdriver image service use the same code to
create the cache - they only supply their own `cacheAdaptor` struct.

Extract the shared code to `cache.New`.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
The file was modified image/cache/cache.go (diff)
The file was modified daemon/containerd/cache.go (diff)
The file was modified daemon/images/cache.go (diff)