docker-credential-helpers icon indicating copy to clipboard operation
docker-credential-helpers copied to clipboard

Fixes #333 Handle parallel calls to add with osxkeychain

Open beejeebus opened this issue 6 months ago • 0 comments

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.

beejeebus avatar Aug 08 '24 17:08 beejeebus