How can I disable credsStore:"desktop.exe" from config.json

My FROM directive in docker build points to base image from a corporate repository.
Recently I am getting invalid credentials error when docker tries to pull the base image from that directroy to build my deployment.
Previously, I got around this by deleting the following line from /etc/user/.docker/config.json:
But recently, every time I restart docker, the file is recreated with this line in it.
How can I disable that from happening?