---
name: Registry-ts_docker_mac
title: Why is `docker login` on my Mac failing when I use Container Registry?
description: '[macOS] When you are using IBM Cloud&reg; Container Registry, `docker login` fails on a Mac with the following message `Error saving credentials: error storing credentials - err: exit status 1, out: ''The user name or passphrase you entered is not correct''`.'
last-updated: 2025-10-14
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/Registry?format=markdown
> The index for all IBM Cloud docs is at: https://cloud.ibm.com/docs/llms.txt
> Use these files to discover more information as needed.

# Why is `docker login` on my Mac failing when I use Container Registry?
{: #troubleshoot-docker-mac}
{: troubleshoot}
{: support}

[macOS]{: tag-macos} When you are using IBM Cloud&reg; Container Registry, `docker login` fails on a Mac with the following message `Error saving credentials: error storing credentials - err: exit status 1, out: 'The user name or passphrase you entered is not correct'`.
{: shortdesc}

You receive the following error message when you try to run the [`ibmcloud cr login`](https://cloud.ibm.com/docs/Registry?topic=Registry-containerregcli&format=markdown#bx_cr_login) command on a Mac:
{: tsSymptoms}

```txt
Error saving credentials: error storing credentials - err: exit status 1, out:
'The user name or passphrase you entered is not correct.'
```
{: screen}

Docker for Mac has a problem that prevents your credentials from being stored in the macOS keychain.
{: tsCauses}

You might be able to resolve the problem by restarting your Mac. If restarting your Mac doesn't solve the problem, you can disable the storage of logins in your Mac keychain:
{: tsResolve}

1. In your menu, click the **Docker** icon, select **Preferences**.
2. Clear the **Securely store Docker logins in macOS keychain** checkbox.