gpt4 book ai didi

docker - 无法在 Windows 上的 Docker 中启动 TensorFlow

转载 作者:IT老高 更新时间:2023-10-28 12:43:57 28 4
gpt4 key购买 nike

希望我没有错过任何东西。
我已经使用本指南在我的 win 7 上安装了 docker:
https://docs.docker.com/engine/installation/
我打开一个新终端并输入以下命令:

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

所有下载和提取,然后我得到以下按摩:

[I 16:09:55.069 NotebookApp] Writing notebook server cookie secret to /root/.local/share/jupyter/runtime/notebook_cookie_secret 
[W 16:09:55.122 NotebookApp] WARNING: The notebook server is listening on all IP
addresses and not using encryption. This is not recommended.
[W 16:09:55.122 NotebookApp] WARNING: The notebook server is listening on all IP
addresses and not using authentication. This is highly insecure and not recommended.
[I 16:09:55.134 NotebookApp] Serving notebooks from local directory: /notebooks
[I 16:09:55.134 NotebookApp] 0 active kernels
[I 16:09:55.134 NotebookApp] The Jupyter Notebook is running at: http://[all ip addresses on your system]:8888/
[I 16:09:55.134 NotebookApp] Use Control-C to stop this server and shut down all
kernels (twice to skip confirmation).

然后它就像这样卡住了,没有命令行,我无法输入任何东西......我错过了什么?

最佳答案

好的,所以我找到了一个答案,
解决方法有两种:
1)改为使用源代码安装tensorflow,这似乎解决了问题。这是通过编写:docker run -it b.gcr.io/tensorflow/tensorflow:latest-devel
2) 或者,如果您使用常规安装,请在安装前检查默认虚拟机 IP:

docker-machine ip default

然后,安装后进入浏览器到http://(default_ip):8888/

关于docker - 无法在 Windows 上的 Docker 中启动 TensorFlow,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35582875/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com