Hello everyone, I hope the new year has started of...
# general
b
Hello everyone, I hope the new year has started off well for you. I am trying to overwrite docker's default
config.json
for a
pulumi_docker.docker.Image
by creating a custom
pulumi_docker.docker.Provider
, but somehow it doesn't work and I'm not sure what could be the cause. I added a small example. Also, why am i doing this: If i leave the
config.json
as is, including its
credsStore
, i receive this error:
Copy code
docker:index:Image (name-of-the-image):
    Building your image for linux/amd64 architecture.
    To ensure you are building for the correct platform, consider explicitly setting the `platform` field on ImageBuildOptions.
    error: error listing credentials - err: exit status 255, out: ``
If i set the credsStore empty inside my
~/.docker/config.json
like
{"credsStore": "" }
it works fine, but then i obviously won't be able to authenticate anymore. Any help is appreciated.
c
@busy-evening-57345 what version of the Docker provider are you using? And if you upgraded recently, can you try to downgrade the version to the previous one?...without setting the
config_file_content
as you originally intended to use the custom
Provider
instance.
Also which Pulumi CLI version are you using?
b
I am using the python pulumi sdk version
3.94.2
and the pulumi-docker provider version
4.4.3
. We haven't updated recently. Also I didn't intend and didn't use a custom Provider for this Images before. I am only trying to use it now to work around this error. I'll explain it a bit further: The
credStore
was previously set to empty in the user's
config.json
. Now, I want to interact with another container registry that requires authentication, which means the
credStore
entry will be used. However, as soon as the
credStore
contains something, this part of the code triggers the error mentioned above.
c
@busy-evening-57345 I sent you a DM.