You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When docker login private-registry.example.com is called in parallel, some of the calls fail with the error The specified item already exists in the keychain.
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
pushed a commit
to beejeebus/docker-credential-helpers
that referenced
this issue
Aug 8, 2024
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]>
When
docker login private-registry.example.com
is called in parallel, some of the calls fail with the errorThe specified item already exists in the keychain.
Assuming a docker config with
osxkeychain
:Then the issue can be reproduced like this:
The processes that lose the race report an error, even though the credentials were successfully added by the winner of the race.
The text was updated successfully, but these errors were encountered: