Cannot use docker login from gitbash terminal

I run the docker toolbox/start.sh from gitbash console. All the docker commands run fine. However when I try to push a local docker image to hub, I get this error:
Error: Cannot perform an interactive login from a non TTY device. I tried using other editors as cygwin, but same faced the same issue.
My docker version is 1.12.

Please suggest.

Hi! I have this problem too. I see it’s been a year since the original post. Did you manage to solve it?