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
. I've checked that file and indeed my password is there unencrypted (base64 encoded only).
Why docker saved my password unencrypted? Shouldn't it save it in my key-chain (I am on Mac OS) or instead of saving password just generate some access token or something like that?
There is a lot of discussion about this:
https://github.com/docker/docker/issues/10318
It will get fixed eventually, although it's not yet clear how. In particular, note this comment:
To sum this:
- sure, things need to be fixed
- there is an open effort in doing that (#distribution), and people are certainly welcome to join if they want - either way, the issue here is definitely something being worked on
- we should aim for the right solution - not just "any solution as fast as possible" - this will take time and energy, but I'm confident we will get there