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.
volumeMounts: - mountPath: /var/run/docker.sock:ro name: docker-sock ... volumes: - name: docker-sock hostPath: path: /var/run/docker.sock
I'm also mounting with minikube like so
minikube start --memory='5000MB' --mount --mount-string='/:/k8s' --cpus='4'