-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement minikube image ls #10933
Comments
Sample output: Containerd
Docker wo/CRI (
Docker w/CRI (
|
WDYT, @medyagh |
Notice the total lack of standards, when it comes to naming images and reporting sizes. https://github.com/kubernetes/cri-api/tree/master/pkg/apis/runtime/v1 It's nice that it says "name" and "size", but nothing beyond a string or a number... It can be short name or long name, compressed size or uncompressed size |
One feature that was suggested, was to be able to filter which images were added by $ minikube ssh -- sudo /var/lib/minikube/binaries/v1.20.2/kubeadm config images list --kubernetes-version=v1.20.2
k8s.gcr.io/kube-apiserver:v1.20.2
k8s.gcr.io/kube-controller-manager:v1.20.2
k8s.gcr.io/kube-scheduler:v1.20.2
k8s.gcr.io/kube-proxy:v1.20.2
k8s.gcr.io/pause:3.2
k8s.gcr.io/etcd:3.4.13-0
k8s.gcr.io/coredns:1.7.0 As opposed to which were added by minikube by default, and which were added by the user: $ minikube ssh -- sudo crictl images --digests
IMAGE TAG DIGEST IMAGE ID SIZE
alpine latest <none> 28f6e27057430 5.61MB
busybox latest <none> a9d583973f65a 1.23MB
gcr.io/k8s-minikube/storage-provisioner v4 06f83c679a723 85069258b98ac 29.7MB
k8s.gcr.io/coredns 1.7.0 73ca82b4ce829 bfe3a36ebd252 45.2MB
k8s.gcr.io/etcd 3.4.13-0 4ad90a11b5531 0369cf4303ffd 253MB
k8s.gcr.io/kube-apiserver v1.20.2 465ba895d578f a8c2fdb8bf76e 122MB
k8s.gcr.io/kube-controller-manager v1.20.2 842a071d4ad49 a27166429d98e 116MB
k8s.gcr.io/kube-proxy v1.20.2 326fe8a4508a5 43154ddb57a83 118MB
k8s.gcr.io/kube-scheduler v1.20.2 304b3d70497bd ed2c44fbdd78b 46.4MB
k8s.gcr.io/pause 3.2 927d98197ec11 80d28bedfe5de 683kB
kubernetesui/dashboard v2.1.0 7f80b5ba141be 9a07b5b4bfac0 226MB
kubernetesui/metrics-scraper v1.0.4 555981a24f184 86262685d9abb 36.9MB |
We also need to fix the short names, so that they show proper images (with the registry): docker.io/library/alpine:latest So that we can get away from hardcoding docker.io, see container image short names |
This exposes a shortcoming with the current image load, when running with cri-o: dockerk8s.gcr.io/pause:3.2 containerdk8s.gcr.io/pause:3.2 cri-olocalhost/busybox:latest This is a known issue, podman only adds fully qualified names. |
You can compare this output, with the regular Main differences:
The other output formats (like JSON) could be added, with some effort. Also the output for containerd needs fixing, to show unpacked sizes. |
Another simple wrapper, this time for
crictl images
.Could be useful when using
load
andrm
, perhaps ?The text was updated successfully, but these errors were encountered: