lmorandini opened a new issue, #5017: URL: https://github.com/apache/camel-k/issues/5017
### What happened? Trying to run a sample integration fails with: 'unexpected status code 401 Unauthorized `. The workaround is to create a secret that has `https://index.docker.io/v1/` as the docker server I tried to set that value during the Camel-K installation to avoid changing all secrets, but that resulted in an error during the sample integration build: `Build kit-cmavqirma4hs738o9el0 failed: Get \"https://https/v2/\": dial tcp: lookup https on 10.254.0.10:53: no such host/).` ### Steps to reproduce 1. Instal Camel-K specifying the registry as `--registry=docker.io` in `kamel install`; 2. Create a secret with `--docker-server=docker.io` with the credentials of a Docker Hub user; 3. Run a sample integration: ``` curl -XGET\ "https://raw.githubusercontent.com/apache/camel-k-examples/main/generic-examples/languages/simple.js"\ -o /tmp/simple.js kamel run \ /tmp/simple.js \ --name=sample \ --dev ``` ### Relevant log output ```shell "level":"info","ts":"2024-01-04T01:52:15Z","logger":"camel-k.controller.build","msg":"Build duration 17.776347732s","request-namespace":"api","request-name":"sample","build-attempt":1,"build-result":"Failed","build-duration":17.776347732,"api-version":"camel.apache.org/v1","kind":"Build","ns":"api","name":"kit-cmb0u7omgm9c738e10j0"} {"level":"error","ts":"2024-01-04T01:52:15Z","logger":"camel-k.controller.build","msg":"Build kit-cmb0u7omgm9c738e10j0 failed: HEAD https://index.docker.io/v2/lmorandini/camel-k-kit-cmb0u7omgm9c738e10j0/manifests/11426772: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)","request-namespace":"api","request-name":"kit-cmb0u7omgm9c738e10j0","api-version":"camel.apache.org/v1","kind":"Build","ns":"api","name":"kit-cmb0u7omgm9c738e10j0","stacktrace":"github.com/apache/camel-k/v2/pkg/util/log.Logger.Errorf\n\tgithub.com/apache/camel-k/v2/pkg/util/log/log.go:60\ngithub.com/apache/camel-k/v2/pkg/controller/build.(*monitorRoutineAction).updateBuildStatus\n\tgithub.com/apache/camel-k/v2/pkg/controller/build/monitor_routine.go:216\ngithub.com/apache/camel-k/v2/pkg/controller/build.(*monitorRoutineAction).runBuild\n\tgithub.com/apache/camel-k/v2/pkg/controller/build/monitor_routine.go:200"} {"level":"info","ts":"2024-01-04T01:52:15Z","logger":"camel-k.controller.build","msg":"State transition","request-namespace":"api","request-name":"kit-cmb0u7omgm9c738e10j0","api-version":"camel.apache.org/v1","kind":"Build","ns":"api","name":"kit-cmb0u7omgm9c738e10j0","phase-from":"Running","phase-to":"Failed"} {"level":"info","ts":"2024-01-04T01:52:15Z","logger":"camel-k.controller.build","msg":"Recovery attempt (2/5)","request-namespace":"api","request-name":"kit-cmb0u7omgm9c738e10j0","api-version":"camel.apache.org/v1","kind":"Build","ns":"api","name":"kit-cmb0u7omgm9c738e10j0"} ``` ``` ### Camel K version 2.1.0 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org