Kaniko: Unrecognized challenge: BASIC

Created on 1 Jun 2018  路  4Comments  路  Source: GoogleContainerTools/kaniko

I am trying to build a container image inside kubernetes. The command docker run -v ~/.docker:/root/.docker -v ~/workspace:/workspace gcr.io/kaniko-project/executor:latest -f Dockerfile -d privateregistry.example.com/org1/hello:v1 -c /workspace builds the image and tries to upload it to my private registry. The output is:

time="2018-06-01T11:40:00Z" level=info msg="Unpacking filesystem of hello-world:linux..."
2018/06/01 11:40:00 No matching credentials found for index.docker.io, falling back on anonymous
time="2018-06-01T11:40:01Z" level=info msg="Mounted directories: [/kaniko /var/run /proc /dev /dev/pts /sys /sys/fs/cgroup /sys/fs/cgroup/systemd /sys/fs/cgroup/cpuset /sys/fs/cgroup/memory /sys/fs/cgroup/net_cls /sys/fs/cgroup/hugetlb /sys/fs/cgroup/cpu,cpuacct /sys/fs/cgroup/devices /sys/fs/cgroup/blkio /sys/fs/cgroup/perf_event /sys/fs/cgroup/freezer /sys/fs/cgroup/pids /dev/mqueue /workspace /root/.docker /etc/resolv.conf /etc/hostname /etc/hosts /dev/shm /proc/asound /proc/bus /proc/fs /proc/irq /proc/sys /proc/sysrq-trigger /proc/kcore /proc/timer_list /proc/timer_stats /sys/firmware]"
time="2018-06-01T11:40:01Z" level=info msg="Unpacking layer: 0"
time="2018-06-01T11:40:02Z" level=info msg="Taking snapshot of full filesystem..."
time="2018-06-01T11:40:04Z" level=error msg="Unrecognized challenge: BASIC"

Credentials for the private registry are inside the .docker/config.json file:

{
  "auths": {
    "privateregistry.example.com": {
      "auth": "base64 encoded username:password"
    }
  }
}

What does the error message mean? Which steps may help?

Most helpful comment

This is fixed upstream 馃憤

All 4 comments

Initially I thought the error might be coming from here while trying to get the config file, but I was able to build an image based off hello-world:linux and push it to GCR and Docker registry.

Could you provide the Dockerfile you're trying to build?

EDIT: your docker config may be using a different auth path, which could explain the error

This is my Dockerfile:

FROM hello-world:linux

How do I know which auth path is required?

This is fixed upstream 馃憤

Works now, thank you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nartamonov picture nartamonov  路  4Comments

ahsannaseem picture ahsannaseem  路  3Comments

HoiPangCHEUNG picture HoiPangCHEUNG  路  4Comments

Vrtak-CZ picture Vrtak-CZ  路  5Comments

tejal29 picture tejal29  路  4Comments