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

docker logout throws error on MacOS

Open robertlestak opened this issue 7 years ago • 17 comments

Docker Version 17.03.1-ce-mac5 (16048) MacOS Sierra Version 10.12.4


docker logout myregistry.example.com:5000 throws warning:

Removing login credentials for myregistry.example.com:5000
WARNING: could not erase credentials: error erasing credentials - err: exit status 1, out: `The specified item could not be found in the keychain.`

When running docker logout myregistry.example.com:5000 again, it is confirmed that the logout was successful:

Not logged in to myregistry.example.com:5000

This issue has also been replicated on OSX Yosemite 10.10.5 with a fresh install of Docker CE.

robertlestak avatar Apr 28 '17 23:04 robertlestak

Same issue on Docker 17.06.0-ce-rc5-mac16 (18400).

andradei avatar Jun 27 '17 07:06 andradei

Same on El Capitan 10.11.16, Docker version 17.06.0-ce, build 02c1d87 (18432)

Anybody knows the latest version which doesn't have this issue ?

mrotaru avatar Jul 06 '17 08:07 mrotaru

Re-installed current stable (Version 17.06.0-ce-mac18 (18433)) and not seeing the issue.

mrotaru avatar Jul 06 '17 09:07 mrotaru

Same issue with docker 17.06.1-ce, macos 10.12.6

saliceti avatar Sep 01 '17 10:09 saliceti

In case it helps, I was doing some version testing the other day and also noticed this on 1.13.1. I did not notice this on 1.9.1.

joedragons avatar Sep 01 '17 13:09 joedragons

Same issue with docker Version 17.06.2-ce-mac27(19124), macOS Sierra 10.12.6. I do login into a private registry on another machine on same network; the login is successful but the logout gives me this "WARNING: could not erase credentials: error erasing credentials - err: exit status 1, out: The specified item could not be found in the keychain."

ElPsyCongro avatar Sep 27 '17 19:09 ElPsyCongro

Same issue on macOS High Sierra 10.13.1 (17B48) and Docker 17.09.0-ce-mac35 (19611).

I fixed it by rebooting my Mac. See docker/for-mac#2228

liming-gd avatar Nov 21 '17 02:11 liming-gd

I'm hitting the same issue after deleting some certificates in my keychain. Is there any way to fix it. Tried restarting docker but didn't work.

saqib-ahmed avatar Aug 07 '19 09:08 saqib-ahmed

I'm seeing this error as well with: Docker version 19.03.1, build 74b1e89 System Version: macOS 10.14.6 (18G87)

I tried restarting mac but that didn't fix the issue for me

sumitb avatar Aug 07 '19 23:08 sumitb

Same issue with: Docker version 19.03.2, build 6a30dfc / macOS 10.14.6. I saw this issue in case login to the private registry only. I can logout from docker.io (default registry) without any warning.

akiko-pusu avatar Oct 03 '19 06:10 akiko-pusu

Same issue with CentOS Linux release 8.0.1905 , Docker version 19.03.4, build 9013bf583a Also with a private repository.

Moghi avatar Nov 19 '19 14:11 Moghi

Same issue with MacOS Mojave 10.14.4. Docker desktop 2.1.0.5. Docker engine 19.03.5. Also using private repository.

[UPDATE]: A reboot solved it for me.

Gronis avatar Jan 13 '20 14:01 Gronis

Same issue with MacOS Catalina 10.15.5. Docker version 19.03.8. I use also a private repository.

soernt avatar Jun 10 '20 16:06 soernt

Not a solution but I found a workaround on OSX. Open the "Keychain Access" application and delete the entry called Docker Credentials. You are now logged out 🤷

chriswininger avatar Mar 04 '21 19:03 chriswininger

Same issue with macOS big sur

Segfaultd avatar Apr 02 '21 14:04 Segfaultd

Same issue.Is there any resolution ?

Seelam-Ramesh-Reddy avatar Jan 21 '22 05:01 Seelam-Ramesh-Reddy

lovely, 5 years after initial report, Docker version 20.10.16, build aa7e414, still not working. Thanks god it's nothing important, it's just a security issue.

alfonz19 avatar May 23 '22 14:05 alfonz19