[GH-ISSUE #2497] docker运行frp,运行stcp模式,无法对外暴露端口提供服务 #1985

Closed
opened 2026-05-05 13:16:48 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @myhoger on GitHub (Jul 26, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2497

  1. 运行环境
    windows
    docker-desktop
    ubuntu
  2. 报错
    没有报错
  3. 版本
    frp_0.37.0_linux_amd64

在容器内部可以访问,通过容器暴露端口,宿主机上则无法访问

Originally created by @myhoger on GitHub (Jul 26, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2497 1. 运行环境 windows docker-desktop ubuntu 2. 报错 没有报错 3. 版本 frp_0.37.0_linux_amd64 在容器内部可以访问,通过容器暴露端口,宿主机上则无法访问
gitea-mirror 2026-05-05 13:16:48 -06:00
Author
Owner

@blizard863 commented on GitHub (Jul 27, 2021):

可以提供下错误日志, 而且没有特别明白,你的部署方式,比如什么组件放在了 docker,什么组件放在了宿主机。

<!-- gh-comment-id:887170739 --> @blizard863 commented on GitHub (Jul 27, 2021): 可以提供下错误日志, 而且没有特别明白,你的部署方式,比如什么组件放在了 docker,什么组件放在了宿主机。
Author
Owner

@axboy commented on GitHub (Aug 11, 2021):

server网络建议使用host模式,更不需要考虑网络端口映射情况,
我使用这个挺稳定,因自己使用,frp版本相比最新版更新较慢,想起来就更新一下。

https://github.com/axboy/dockerfiles/tree/master/frp

<!-- gh-comment-id:896551035 --> @axboy commented on GitHub (Aug 11, 2021): server网络建议使用host模式,更不需要考虑网络端口映射情况, 我使用这个挺稳定,因自己使用,frp版本相比最新版更新较慢,想起来就更新一下。 https://github.com/axboy/dockerfiles/tree/master/frp
Author
Owner

@oxkenshin commented on GitHub (Aug 13, 2021):

wsl2的问题,wsl2的host模式把端口暴露到docker daemon的host下,而不是wsl的命令行环境的host。要么把服务也放到docker里面,要么把frp从docker里面拿出来。

<!-- gh-comment-id:898246426 --> @oxkenshin commented on GitHub (Aug 13, 2021): wsl2的问题,wsl2的host模式把端口暴露到docker daemon的host下,而不是wsl的命令行环境的host。要么把服务也放到docker里面,要么把frp从docker里面拿出来。
Author
Owner

@github-actions[bot] commented on GitHub (Sep 13, 2021):

Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

<!-- gh-comment-id:917745703 --> @github-actions[bot] commented on GitHub (Sep 13, 2021): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#1985
No description provided.