weixin_39658716 2020-11-20 18:02
浏览 0

ko does not load images into minikube daemon

I was testing ko to build/upload container images into Minikube's daemon but so far I found the following problems:

  1. 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)
  2. 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
  3. 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)
  1. 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 images doesn't displayed the images that should be loaded.
  2. ko doesn't display much debugging information. It looks that the loading is done though.

Do I miss something?

该提问来源于开源项目:google/go-containerregistry

  • 写回答

4条回答 默认 最新

  • weixin_39658716 2020-11-20 18:02
    关注

    related to #139

    评论

报告相同问题?