[GH-ISSUE #3544] run docker image with frps.ini file mounting #2825

Closed
opened 2026-05-05 13:49:39 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @testarchitecture39 on GitHub (Jul 24, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3544

Bug Description

Hi,

in the current implementation, I am not able to run the frps docker by mounting a frps.ini file.
Is this supported.
It works with frpc by adding the file to ./frpc.ini, but for servers it does not work.

docker run -v /etc/frp/frps.ini:/etc/frp/frps.ini fatedier/frps:v0.51.0

I always see the log message as ,

[root.go:206 ]frps uses command line arguments for config

frpc Version

v0.51.0

frps Version

v0.51.0

System Architecture

mac

Configurations

question related to the configuration file not being picked while running as docker for the frp server

Logs

No response

Steps to reproduce

docker run -v /etc/frp/frps.ini:/etc/frp/frps.ini fatedier/frps:v0.51.0

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @testarchitecture39 on GitHub (Jul 24, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3544 ### Bug Description Hi, in the current implementation, I am not able to run the frps docker by mounting a frps.ini file. Is this supported. It works with frpc by adding the file to ./frpc.ini, but for servers it does not work. docker run -v /etc/frp/frps.ini:/etc/frp/frps.ini fatedier/frps:v0.51.0 I always see the log message as , [root.go:206 ]frps uses command line arguments for config ### frpc Version v0.51.0 ### frps Version v0.51.0 ### System Architecture mac ### Configurations question related to the configuration file not being picked while running as docker for the frp server ### Logs _No response_ ### Steps to reproduce docker run -v /etc/frp/frps.ini:/etc/frp/frps.ini fatedier/frps:v0.51.0 ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@fatedier commented on GitHub (Jul 24, 2023):

-c to specify configration file

<!-- gh-comment-id:1648359698 --> @fatedier commented on GitHub (Jul 24, 2023): `-c` to specify configration file
Author
Owner

@testarchitecture39 commented on GitHub (Jul 24, 2023):

Thanks for the quick response.!!!
I was able to run it fine now.

<!-- gh-comment-id:1648362177 --> @testarchitecture39 commented on GitHub (Jul 24, 2023): Thanks for the quick response.!!! I was able to run it fine now.
Author
Owner

@glacierck commented on GitHub (Nov 23, 2023):

完整的docker run 指令是啥?-c不是docker的内置指令吗?怎么变成了指定配置文件。
@fatedier
像这样吗?
docker run -v /etc/frp/frps.ini:/etc/frp/frps.ini fatedier/frps:v0.51.0 -c /etc/frp/frps.ini

<!-- gh-comment-id:1824174793 --> @glacierck commented on GitHub (Nov 23, 2023): 完整的docker run 指令是啥?-c不是docker的内置指令吗?怎么变成了指定配置文件。 @fatedier 像这样吗? docker run -v /etc/frp/frps.ini:/etc/frp/frps.ini fatedier/frps:v0.51.0 -c /etc/frp/frps.ini
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#2825
No description provided.