Describe the bug
When using build cache, the dependencies cannot be tracked (queried for digest).
Reason:
Because we build the image using buildx, but query the digest using docker.
buildx and docker have two separate stores. We can load the final built image into docker by using the --load flag of buildx, but unfortunately buildx does not load all the other dependent images by design.
Solution:
We need to be able to use something like docker manifest inspect base_dependency and grab the master digest of the image.
Currently docker manifest inspect does not support getting the master manifest if the image. So can PR into docker-cli.
Or, can acb can use the dockerApi to make /manifest call, and parse the object to fetch sha digest.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Any relevant environment information
OS: [e.g. Windows]
Version [e.g. v1.0.0]
Additional context
Add any other context about the problem here.
Describe the bug When using build cache, the dependencies cannot be tracked (queried for digest). Reason: Because we build the image using buildx, but query the digest using docker.
buildx
anddocker
have two separate stores. We can load the final built image intodocker
by using the--load
flag ofbuildx
, but unfortunatelybuildx
does not load all the other dependent images by design.Solution: We need to be able to use something like
docker manifest inspect base_dependency
and grab the master digest of the image.Currently
docker manifest inspect
does not support getting the master manifest if the image. So can PR into docker-cli. Or, canacb
can use the dockerApi to make /manifest call, and parse the object to fetch sha digest.To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Any relevant environment information
Additional context Add any other context about the problem here.