Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes docker#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. Signed-off-by: Justin Randell <[email protected]>
- Loading branch information