windows下使用docker quickstart terminal访问jupyter(tensorflow环境)拒绝访问的解决方法

1.docker run -it --rm --name myts -p 8888:8888 registry.cn-hangzhou.aliyuncs.com/denverdino/tensorflow

在docker quickstart terminal中输入常规命令,启动tensorflow的镜像。

复制网址http://localhost:8888/?token=6e6f9307b156424120dddcf523169cf6f240fe0389815ae3后,发现404拒绝访问。

2.由于是windows下使用docker quickstart terminal,属于虚拟机环境,windows下的浏览器需要访问虚拟机内部的网络。

windows下使用docker quickstart terminal访问jupyter(tensorflow环境)拒绝访问的解决方法

所以把网址中的localhost换成192.168.99.100就可以访问了。

http://192.168.99.100:8888/?token=6e6f9307b156424120dddcf523169cf6f240fe0389815ae3

界面显示。