Getting the Id of an image and not just the name:tag #11347
Labels
area/image
Issues/PRs related to the minikube image subcommand
kind/feature
Categorizes issue or PR as related to a new feature.
lifecycle/frozen
Indicates that an issue or PR should not be auto-closed due to staleness.
priority/backlog
Higher priority than priority/awaiting-more-evidence.
Currently we are using the name:tag of an image, which has some issues
:latest
Previously we have also used digests, which is another can of worms
So it would be better to add support for the "id" to our image loading code.
This is calculated based on the contents of the image itself, and also in CRI.
It looks something like this:
sha256:c55b0f125dc65ee6a9a78307d9a2dfc446e96af7477ca29ddd4945fd398cc698
Instead of
busybox:latest
(short name) ordocker.io/library/busybox:latest
(canonical name)Then we can compare this with
crictl images
(or
docker images
, when not using CRI)So we should avoid digests, which is confusing because they look similar:
And instead use the "image id", for separating two images from eachother:
Note that the image id changes with the architecture, while the repo digest remains the same.
We can still use digests for the kicbase of course, this was about handling in
cache
andimage
.Some pseudo-code
Docker
similar to the CLI:
Podman
(no daemon, no api - we just call the CLI instead.)
podman doesn't have
sha256:
prefix in id? add it, for comparisonneed to make sure to add it to the
crictl
output, when using cri-oTarball
Implementation details:
needcan give the tag when getting the id (ornil
, to get all)python:latest
)Previous issues:
cache reload
does not appear to be working properly #10060minikube image load
not updating image if loading image with existing name:tag #11276The text was updated successfully, but these errors were encountered: