rancher / kim

In ur kubernetes, buildin ur imagez
Apache License 2.0
326 stars 19 forks source link

`kim build` sometimes doesn't work #38

Closed ericpromislow closed 3 years ago

ericpromislow commented 3 years ago

OS: macOS 10.15.17, 2.3 GHz 8-Core Intel Core i9

$ kim --version
kim version v0.1.0-alpha.9 (2778cc93265a202c65d5002cdddbba33b5116970)
 # downloaded from the github release page

$ minikube version
minikube version: v1.17.0
commit: 9e7f03395052ddaa971eb5195287f13230004226-dirty

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.2", GitCommit:"faecb196815e248d3ecfb03c680a4507229c2a56", GitTreeState:"clean", BuildDate:"2021-01-13T13:28:09Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.2+k3s1", GitCommit:"d38505b124c92bffd45f6e0654adb9371cae9610", GitTreeState:"clean", BuildDate:"2020-09-21T17:00:07Z", GoVersion:"go1.15.2", Compiler:"gc", Platform:"linux/amd64"}

$ cd <dir containing a Dockerfile>

$ kim build .
=> ERROR [internal] load build definition from Dockerfile                                                                 0.0s
------
 > [internal] load build definition from Dockerfile:
------
Error: failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to read dockerfile: failed to mount tai46ajmvi311f8134ta4hifk: snapshot tai46ajmvi311f8134ta4hifk does not exist: not found
Usage:
  kim build [OPTIONS] PATH

Workaround: rebuild the kubernetes cluster - kim build now works.

dweomer commented 3 years ago

I believe that this is buildkit being persnickety because /var/lib/rancher in rancher-desktop minikube is on the tmpfs root (and not a bind mount to a location on the virtual disk).