To build and run a Docker image in Minikube running on the Docker container runtime, all I have to do is this:
eval $(minikube docker-env)
docker build -t some/tag .
Minikube will find the image.
But if I run Minikube in cri-o mode, this doesn't work, as expected. Is there a way to load a local Docker image and use that? In theory, any OCI-compliant container image should work?
Also, I'm on macOS if that matters.
Would
Work for you?
Not really sure of the environment. On the VM you can also do something like
which would populate the cri-o storage.
Skopeo has similar commands.