pulumi-kubernetes
pulumi-kubernetes copied to clipboard
Cannot use OCI Helm registry in devcontainer
I had a strange issue with OCI registry when using helm Release
or Chart
(v3/v4).
Pulumi would exit immediately with an error message:
kubernetes:helm.sh/v3:Release (envoy-gateway-release):
error: kubernetes:helm.sh/v3:Release resource 'envoy-gateway-release': property chart value {oci://registry-1.docker.io/envoyproxy/gateway-helm} has a problem: EOF; check the chart name and repository configuration.
pulumi:pulumi:Stack (fms-dev):
Error retrieving credentials: Post "http://localhost:12049/docker-credentials": dial tcp [::1]:12049: connect: connection refused
Anyway, because I was running in a devcontainer
without anything docker related in it, fix was simple: add blank .docker/config.json to my Dockerfile
RUN echo "{}" > ~/.docker/config.json
Note: make sure you run this after USER
directive if you are running as non-root (hopefully)!