I did a Docker-compose run Since a Credentials store error has occurred, I will write a countermeasure.
macOS High Sierra 10.13.2 Docker version 19.03.12
Uncheck the Docker icon in the menu bar> Preferences ...> Securely store docker logins in macOS keychain
I took solution A once, but after a while I got the same error, so I took solution B.
Erase config.json once.
sudo rm ~/.docker/config.json docker login docker-compose run
A new config.json will be created when you log in.