Running git commands in private repo inside docker not working correctly

I changed the .ssh folder to 700 permission, and its contents ( id_rsa and id_rsa.pub ) to 600.

But still I got 0 when I checked for commit_behind.