adorable-gpu-98268
03/15/2022, 7:59 AMunix:///var/run/docker.sock
Now when I run pulumi up
, I get an error:
Diagnostics:
docker:index:RegistryImage (hello-world):
error: 1 error occurred:
* Error pushing docker image: Error response from daemon: Bad parameters and missing X-Registry-Auth: EOF
What this is related to and how do I fix it?new docker.Provider
and passing username
and password
explicitly. However: These are then plaintext in my pulumi state!
I don’t think this is an acceptable solution. Is there any way to have the credentials external to the pulumi state?witty-candle-66007
03/15/2022, 3:10 PMpulumi config set dockerUsername --secret
pulumi config set dockerPassword --secret
And then use those values in my program as such:
const config = new Config()
const dockerProvider = new docker.Provider("dockprovider", {
registryAuth: [{
address: "<https://index.docker.io/v1>",
password: config.requireSecret("dockerPassword"),
username: config.requireSecret("dockerUsername"),
}]
})
adorable-gpu-98268
03/15/2022, 3:13 PM