docker容器内部启动jupyter notebook但是宿主机无法访问的解决方法

目录

1.问题

在docker容器内启动了jupyter notebook,在宿主机内用如下的url无法访问

http://localhost:8888

http://127.0.0.1:8888

启动方法:

jupyter notebook

2.解决方法

启动方法加上选项[ --ip='*']或者[--ip='0.0.0.0']

即启动方法改为如下,宿主机浏览器即可访问

jupyter notebook --ip='*'

或者

jupyter notebook --ip='0.0.0.0'

这个选项的意思是允许远程访问。

相关推荐
身如柳絮随风扬11 小时前
TiDB 极速入门与 Spring Boot 实战:从 Docker 部署到高并发调优
spring boot·docker·tidb
万里侯1 天前
GitOps实战:用Git管理基础设施
微服务·容器·k8s
STDD1 天前
cert-manager:Kubernetes 自动 TLS 证书管理
云原生·容器·kubernetes
卧室小白1 天前
docker容器
运维·docker·容器
Benszen1 天前
Docker容器化解决方案
运维·docker·容器
仙柒4151 天前
Namespace
运维·docker·容器
nan madol1 天前
openEuler部署 Kubernetes v1.35.5 集群
云原生·容器·kubernetes
木雷坞1 天前
K8s containerd 镜像源配置:用 1ms-helper 处理 ImagePullBackOff
云原生·容器·kubernetes
pigs20181 天前
Docker容器中Kingbase数据库授权到期更换解决方案
数据库·docker·容器
xingyuzhisuan1 天前
Jupyter Notebook 云GPU配置全解析(含实操+选型指南)
ide·python·jupyter·gpu算力