Hey all! Has anyone had issues when creating multi...
# dotnet
a
Hey all! Has anyone had issues when creating multiple Docker images at the same time? We have a scenario where we fire off 4
new Docker.Image(new Docker.ImageArgs { Build = new Docker.DockerBuild....
commands to build 4 different images and frequently (not always) have it throw an error during pulumi up:
Copy code
Executing ' docker login'
Executing ' docker login'
Executing ' docker login'
Executing ' docker login'
Login Succeeded
Login Succeeded
Login Succeeded
warning: WARNING! Your password will be stored unencrypted in C:\Users\AzDevOps.vmss000026\.docker\config.json.Configure a credential helper to remove this warning. See<https://docs.docker.com/engine/reference/commandline/login/#credentials-store>
error: WARNING! Your password will be stored unencrypted in C:\Users\AzDevOps.vmss000026\.docker\config.json.Configure a credential helper to remove this warning. See<https://docs.docker.com/engine/reference/commandline/login/#credentials-storeError> saving credentials: rename C:\Users\AzDevOps.vmss000026\.docker\config.json866015259 C:\Users\AzDevOps.vmss000026\.docker\config.json: Access is denied.
warning: WARNING! Your password will be stored unencrypted in C:\Users\AzDevOps.vmss000026\.docker\config.json.Configure a credential helper to remove this warning. See<https://docs.docker.com/engine/reference/commandline/login/#credentials-store>
' docker login' failed with exit code 1
warning: WARNING! Your password will be stored unencrypted in C:\Users\AzDevOps.vmss000026\.docker\config.json.Configure a credential helper to remove this warning. See<https://docs.docker.com/engine/reference/commandline/login/#credentials-store>
So 1 of the 4 above has issues writing to the warning temp docker config file, I'm assuming at the same time.
👍 1
I will note these are Windows images for a legacy app, I don't think it matters other than they are big and slow. I can provide more of the code if it would be beneficial.
Currently on Pulumi 2.22.0.
If anyone is following along, this is because its logging into the ECR Registry 4 separate times all at once and Docker tries to write it to it's config file and it gets a file lock. I "fixed" this by using the ECR credentialhelper and removing the Registry (repo,user,pass) from my pulumi image