docker-credential-helpers
docker-credential-helpers copied to clipboard
Fixes #333 Handle parallel calls to add with osxkeychain
When docker login
is called in parallel, some of the calls fail with the error The specified item already exists in the keychain
.
This PR checks for this specific error in osxkeychain.Add
and returns ok. If one process loses the race in this case, the desired credentials were saved by another process and we can ignore the error.