Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker images disappearing over time

I loaded some docker images running

docker load --input <file>

I can then see these images when executing

docker image ls

After a while images start disappearing. Every few minutes there are less and less images listed. I did not run any of images yet. What could be the cause of this issue?

EDIT: This issue arises with docker inside minikube VM.

like image 529
Tians Avatar asked Oct 17 '25 15:10

Tians


1 Answers

Since you've mentioned that Docker daemon runs inside minikube VM, I assume that you might hit K8s Garbage collection mechanism, which keeps system utilization on appropriate level and reduce amount of unused containers(built from images) by adjusting the specific thresholds.

These eviction thresholds are fully managed by Kubelet k8s node agent, cleaning uncertain images and containers according to the parameters(flags) propagated in kubelet configuration file.

Therefore, I guess you can investigate K8s eviction behavior looking at the certain thresholds, adjusted in kubelet config file which is generated by minikube bootstrapper in the following path /var/lib/kubelet/config.yaml.

like image 116
Nick_Kh Avatar answered Oct 20 '25 09:10

Nick_Kh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!