if you follow the instructions for docker/tensorflow installation, you might face the error:
$ docker run -it b.gcr.io/tensorflow/tensorflow
cannot enable tty mode on non tty input
After half an hour.. there goes the solution!
$ docker-machine ssh default
Now I can dive into tensorflow.
Following link is for all the math for the tutorials!
Another solution:
$ winpty docker run -it '#id'
