Hi experts,
I'm following the tutorial Deploy Your CAP Application to Kyma. In step 4 "Build CAP Service" I should run the command to pack the docker image and upload it to the container registry. Unfortunately this fails with following error:
ERROR: failed to build: downloading buildpack: extracting from registry 'gcr.io/paketo-buildpacks/nodejs': fetching image: error pulling image configuration: download failed after attempts=6: x509: certificate signed by unknown authority
I have a fresh Docker Desktop (no images available before executing the command).
So, how can I solve this?
regards
René
Request clarification before answering.
Hi all,
I found a solution:
As I use Docker Hub I executed following commands in the bash:
$CONTAINER_REGISTRY=docker.io/<My Docker User Name>pack build $CONTAINER_REGISTRY/cpapp-srv --path gen/srv \
--buildpack paketo-buildpacks/nodejs \
--builder paketobuildpacks/builder-jammy-base \
--env BP_NODE_RUN_SCRIPTS=""Executing these commands successfully created the Docker image.
So, in comparison to the tutorial I left out the "gcr.io/" from the nodejs buildpack and I used a container registry URL different than in my Docker config.json. (It should only be the domain of the URL in the config json and the user name must be added as path)
I don't know if this can be used for other container registries as well (Google/gcr.io, GitHub/ghcr.io, ...)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.