希望我没有遗漏任何事项。
我使用此指南在我的win 7上安装了docker。
我打开了一个新的终端并输入了以下命令:
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).
然后它就像这样卡住了,没有命令行,我无法输入任何东西...我错过了什么吗?
-d
开关将其变为守护进程:docker run -d -it b.gcr.io/tensorflow/tensorflow
。 - AmazingDreamsdocker run -d -it b.gcr.io/tensorflow/tensorflow
没有意义!你想在后台模式下运行容器-d
,同时使用带 tty 的交互模式-it
运行它?你期望得到什么?能提供一个 Dockerfile 吗?试试运行:docker run -it --net=host b.gcr.io/tensorflow/tensorflow
,或者更好的是,docker run -it --p 8888:8888 b.gcr.io/tensorflow/tensorflow
然后使用浏览器访问http://host-ip:8888
(不要使用 localhost,除非使用--net=host
)。 - Auzias