[GH-ISSUE #4258] docker 容器端口映射和systemd的关系 #3355

Closed
opened 2026-05-05 14:09:56 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @shuaidaipeng on GitHub (Jun 3, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4258

Bug Description

docker 容器端口映射 后 frpc 却监听不了这个ip端口在systemd中启动frpc,如果采用手动启动是正常的。这是为什么?

frpc Version

frpc -v

frps Version

v

System Architecture

linux/amd64

Configurations

Logs

No response

Steps to reproduce

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @shuaidaipeng on GitHub (Jun 3, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4258 ### Bug Description docker 容器端口映射 后 frpc 却监听不了这个ip端口在systemd中启动frpc,如果采用手动启动是正常的。这是为什么? ### frpc Version frpc -v ### frps Version v ### System Architecture linux/amd64 ### Configurations 没 ### Logs _No response_ ### Steps to reproduce _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [X] Others
Author
Owner

@acooler15 commented on GitHub (Jun 4, 2024):

在docker容器启动后,重启service试下呢?

<!-- gh-comment-id:2146400117 --> @acooler15 commented on GitHub (Jun 4, 2024): 在docker容器启动后,重启service试下呢?
Author
Owner

@shuaidaipeng commented on GitHub (Jun 4, 2024):

在docker容器启动后,重启service试下呢?
经过测试 没有效果的 确实只有手动启动才正常,通过systemd启动,外网访问不了,只有手动的可以。本机的nginx也是一样的访问不了,如果把frpc放在system中运行的话。我不知道是哪里配置出了问题

<!-- gh-comment-id:2146715138 --> @shuaidaipeng commented on GitHub (Jun 4, 2024): > 在docker容器启动后,重启service试下呢? 经过测试 没有效果的 确实只有手动启动才正常,通过systemd启动,外网访问不了,只有手动的可以。本机的nginx也是一样的访问不了,如果把frpc放在system中运行的话。我不知道是哪里配置出了问题
Author
Owner

@shuaidaipeng commented on GitHub (Jun 4, 2024):

问题解决了。我把centos 8的SELinux给它关闭了就正常了

<!-- gh-comment-id:2147351439 --> @shuaidaipeng commented on GitHub (Jun 4, 2024): 问题解决了。我把centos 8的SELinux给它关闭了就正常了
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#3355
No description provided.