-
Which container runtime are you using for your k8s node? Is it docker or containerd?
-
knet-cluster-wn1 Ready <none> 41d v1.25.9+k3s1 10.10.255.2 <none> Debian GNU/Linux 11 (bullseye) 5.10.0-22-amd64 containerd://1.6.19-k3s1 knet-cluster-cp1 Ready control-plane,master 41d v1.25.9+k3s1 10.10.255.1 <none> Debian GNU/Linux 11 (bullseye) 5.10.0-22-amd64 containerd://1.6.19-k3s1 -
OneDev needs to mount containerd dock sock of node host into a helper container (1dev/k8s-helper-linux) in order to inspect image of the running container (here 1dev/kaniko) to know its entrypoint. The dock sock is normally
/run/containerd/containerd.sockon host, please check if this is the case at your side. -
Previous Value Current Value Open
Closed
-
Please upgrade to build #3827 which avoids mounting container sock.
-
Previous Value Current Value Closed
Open
-
Now there are some authentication issues. My credentials are valid. I checked them with docker cli. But how does Kaniko tries to authenticate against my harbor?
-
I added them in the job executor page.

And this is my step:

-
Previous Value Current Value Kaniko Build fails
Kaniko Build fails (recovered)
-
Kaniko expects the file
/kaniko/.docker/config.jsoncontains registry login info, and OneDev will populate this file.I tested with harbor demo server (
https://demo.goharbor.io/) and it works fine. Please make sure that the executor containing the registry login info is actually been used by your kaniko step (you may check the build log for sure). Also the user name seems uncommon to me, please test with an alphanumeric name to see if it works. -
Previous Value Current Value Open
Closed
-
I messed this up myself. Im running harbor in my kubernetes cluster. But I routed the registry route to the wrong service. The ui was working, but not the registry. But docker login worked. I dont know how. But specifying the right rules solved the problem
| Type |
Question
|
| Priority |
Normal
|
| Assignee |
Hey,
I get following error while trying to build my docker image:
Do i make anything wrong?