Warning : error loading config file

Hi ,
bit of a newbie here , but I’m having this issue when i try to access my container :

WARNING: Error loading config file: /root/.docker/config.json: read /root/.docker/config.json: is a directory

Any hint on how to solve it ?