How can I make host docker images available to k8s Deployment?

HOW TO -️ October 18, 2021

I have a k8s pod that is running docker. My issue is that for the docker images on my host machine to be available within the pod I either have to run the image as a pod or run a docker pull script at the beginning of my deployment.

Docker's pull API rate limits after some time and these images are not meant to be run without inputs, so I would like to know if there's another way to either expose the host's docker or get access to those images.

I am currently trying to expose the local docker socket, but that does not appear to be provide access to the Deployment from the local docker instance. I'm testing by running docker images inside the Deployment and on the host to see if the images match which they don't.

ERROR Rendering Code Block

I'm also mounting with minikube like so

ERROR Rendering Code Block


You could run a registry on k3s, and explicitly push those images into the internal registry (and then access them from there rather than using the upstream reference).