【发布时间】:2021-01-19 01:02:54
【问题描述】:
我使用 jupyter notebook 在我的 WSL 上运行 docker-compose,它提供了以下信息:
[I 00:28:20.921 NotebookApp] Jupyter Notebook 6.1.3 is running at:
[I 00:28:20.921 NotebookApp] http://docker-desktop:3000/?token=...
[I 00:28:20.921 NotebookApp] or http://127.0.0.1:3000/?token=...
[I 00:28:20.921 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
由于 docker 在 WSL 上运行,我无法通过 Windows 机器上的 localhost 访问它。我查了网卡的ip 172.23.16.1 并尝试通过172.23.16.1:3000 访问笔记本,但收到错误连接被拒绝。
我还在我的 windows 机器上打开了传入和传出端口 3000
我错过了什么?
【问题讨论】:
标签: docker windows-subsystem-for-linux