前几天突然发现不能通过内网 ipv4 地址进行访问,今天排查发现容器内和宿主机在开启容器时都没有监听 ipv4 的 6806 端口,只有 ipv6 的,通过 ipv6 能够正常访问,尝试过换成 host 模式依旧不能解决
求助在 docker 部署思源 3.1.1 后不能通过 ipv4 内网地址访问
相关帖子
- 其他回帖
-
name: fascinating_sapakorn services: main: cpu_shares: 90 command: - --workspace=/siyuan/workspace/ - --accessAuthCode=siyuan container_name: siyuan deploy: resources: limits: memory: 64246M environment: - TZ= hostname: siyuan image: b3log/siyuan:latest ports: - target: 6806 published: "6806" protocol: tcp restart: unless-stopped user: 1000:1000 volumes: - type: bind source: /media/saltedfishjun/nas1/siyuan target: /siyuan/workspace devices: [] cap_add: [] network_mode: bridge privileged: false x-casaos: author: self category: self hostname: "" icon: "" index: / is_uncontrolled: false port_map: "6806" scheme: http store_app_id: fascinating_sapakorn title: custom: siyuan
-
这是启动时的日志,
下面是安装时使用的
services: siyuan: image: b3log/siyuan:v3.1.1 container_name: ${CONTAINER_NAME} restart: unless-stopped user: '1000:1000' ports: - ${PANEL_APP_PORT_HTTP}:6806 networks: - 1panel-network command: ['--workspace=/siyuan/workspace/', '--accessAuthCode=${ACCESS_AUTH_CODE}'] volumes: - ./data:/siyuan/workspace environment: - TZ=${TIME_ZONE} labels: createdBy: "Apps" networks: 1panel-network: external: true
这是安装完成启动后导出的
name: fascinating_sapakorn services: main: cpu_shares: 90 command: - --workspace=/siyuan/workspace/ - --accessAuthCode=siyuan container_name: siyuan deploy: resources: limits: memory: 64246M environment: - TZ= hostname: siyuan image: b3log/siyuan:latest ports: - target: 6806 published: "6806" protocol: tcp restart: unless-stopped user: 1000:1000 volumes: - type: bind source: /media/saltedfishjun/nas1/siyuan target: /siyuan/workspace devices: [] cap_add: [] network_mode: bridge privileged: false x-casaos: author: self category: self hostname: "" icon: "" index: / is_uncontrolled: false port_map: "6806" scheme: http store_app_id: fascinating_sapakorn title: custom: siyuan
1 回复1 操作saltedfishjun 在 2024-07-29 21:35:49 更新了该回帖 -
请问需要 docker 的哪些方面截图,我把 iptables 禁用了,宿主机没有防火墙相关的东西,host 模式宿主机和容器均没有 ipv4 的端口监听,桥接模式容器没有 ipv4 的监听,宿主机有,其他容器都是正常的,只有思源是这个情况
- 查看全部回帖
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于