在Windows Docker安装上安装Tensorflow

我正在使用Docker安装( https://www.tensorflow.org/versions/r0.8/get_started/os_setup.html#docker-installation )在我的Windows PC上安装Tensorflow。 在安装Docker之后,我按照以下说明操作: http : //www.netinstructions.com/how-to-install-and-run-tensorflow-on-a-windows-pc/ 。

一切都很好,直到最后一步:当我input指令

docker run -it b.gcr.io/tensorflow/tensorflow 

我获得以下输出:

 [I 10:10:57.073 NotebookApp] Writing notebook server al/share/jupyter/runtime/notebook_cookie_secret [W 10:10:57.104 NotebookApp] WARNING: The notebook s addresses and not using encryption. This is not rec [W 10:10:57.105 NotebookApp] WARNING: The notebook s addresses and not using authentication. This is hig nded. [I 10:10:57.110 NotebookApp] Serving notebooks from [I 10:10:57.110 NotebookApp] 0 active kernels [I 10:10:57.111 NotebookApp] The Jupyter Notebook is addresses on your system]:8888/ [I 10:10:57.111 NotebookApp] Use Control-C to stop t kernels (twice to skip confirmation). 

我在Dockerterminal和命令窗口中input相同的消息,input命令行。 没有其他事情发生,我有义务使用Control-C来停止。

我已经尝试运行b.gcr.io/tensorflow/tensorflow的图像ID,我得到完全一样的东西。

任何想法发生了什么?

非常感谢你!

从日志消息中我可以看到,看起来Docker镜像在写完本教程后已经发生了变化,所以它现在在容器中启动一个Jupyter (IPython)服务器。 要实际使用这个,你需要使用如下命令configuration端口转发到你的Windows主机:

 $ docker run -it -p 8888:8888 gcr.io/tensorflow/tensorflow 

从您的评论 ,它看起来像这个命令不成功,因为有东西已经在您的计算机上的端口8888监听。 如果不能停止已经在端口8888上侦听的任何内容,则可以尝试不同的端口(例如8080),如下所示:

 $ docker run -it -p 8080:8888 gcr.io/tensorflow/tensorflow 

然后将networking浏览器连接到http://127.0.0.1:8080