I\'ve used docker login command and passed my credentials and I got warning WARNING: login credentials saved in /Users/{my_username}/.docker/config.json>
docker login
WARNING: login credentials saved in /Users/{my_username}/.docker/config.json>
You can use Credential Store for this purpose. Here is the offical doc from Docker:
Credential Store