У меня есть образы Дикера, которые были извлечены из частного репозитория:
docker pull xxxxxxxxxxxx.dkr.ecr.eu-west-1.amazonaws.com/image/name:base
base: Pulling from image/name
Digest: sha256:3ac2e726336b9048a4bdcc2188bcca0d30e282892f78169939ae42f76c13bd57
Status: Downloaded newer image for xxxxxxxxxxxx.dkr.ecr.eu-west-1.amazonaws.com/image/name:base
Затем создайте образ с использованием кеша:
docker build --cache-from xxxxxxxxxxxx.dkr.ecr.eu-west-1.amazonaws.com/image/name:base:base -t xxxxxxxxxxxx.dkr.ecr.eu-west-1.amazonaws.com/image/name:base -t simage/name:base -f Dockerfile.base .
Получение ошибки кэширования:
importing cache manifest from xxxxxxxxxxxx.dkr.ecr.eu-west-1.amazonaws.c...
digest: sha256:7d93b70e81596668b75abedddf217ef3a7dfc0fc4b43141caad899a350105ca3
name: "importing cache manifest from xxxxxxxxxxxx.dkr.ecr.eu-west-1.amazonaws.com/image/name:base"
started: 2020-02-18 11:11:49.478586089 +0000 UTC
completed: 2020-02-18 11:11:49.706587921 +0000 UTC
duration: 228.001832ms
error: "invalid build cache from {MediaType:application/vnd.docker.distribution.manifest.v2+json Digest:sha256:3ac2e726336b9048a4bdcc2188bcca0d30e282892f78169939ae42f76c13bd57 Size:3665 URLs:[] Annotations:map[] Platform:<nil>}"
error on cache query: invalid build cache from {MediaType:application/vnd.docker.distribution.manifest.v2+json Digest:sha256:3ac2e726336b9048a4bdcc2188bcca0d30e282892f78169939ae42f76c13bd57 Size:3665 URLs:[] Annotations:map[] Platform:<nil>}
Любые идеи о том, как я могу отладить эту проблему?