mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3544] run docker image with frps.ini file mounting #2825
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#2825
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@fatedier commented on GitHub (Jul 24, 2023):
-cto specify configration file@testarchitecture39 commented on GitHub (Jul 24, 2023):
Thanks for the quick response.!!!
I was able to run it fine now.
@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