I was testing ko to build/upload container images into Minikube's daemon but so far I found the following problems:
- It defaults to the docker env you have set up, in my case "Docker for Mac" not to Minikube (I think that should be said at least in the Readme)
- I tried to run
eval $(minikube docker-env), so that the minikube daemon would be used as describe in Reusing the docker daemon from Minikube. This didn't help - I investigate this library and found that you use NewEnvClient for the daemon, which should use the variables provided by
minikube docker-env.
$ minikube docker-env
export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://192.168.64.12:2376"
export DOCKER_CERT_PATH="/Users/jszroberto/.minikube/certs"
export DOCKER_API_VERSION="1.23"
# Run this command to configure your shell:
# eval $(minikube docker-env)
- I tracked it down and I saw that those variables are set when the client is created, so there should be used, but running
docker imagesdoesn't displayed the images that should be loaded. kodoesn't display much debugging information. It looks that the loading is done though.
Do I miss something?
该提问来源于开源项目:google/go-containerregistry