[GH-ISSUE #2110] Frpc docker image error: unknown command "./frpc" for "frpc" #1675

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

Originally created by @fredericmalo on GitHub (Nov 24, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/2110

[REQUIRED] hat version of frp are you using

Version: v0.34.3 (latest)

[REQUIRED] What operating system and processor architecture are you using
OS: Official Docker image, on macos Catalino
CPU architecture: 64

[REQUIRED] description of errors

Please try this docker-compose.yml:

version: "2"
services:
    frpc:
        image: fatedier/frpc:v0.34.3
        container_name: Frpc
        network_mode: "host"
        volumes:
            - ./cfg:/cfg
        command: ./frpc -c /cfg/frpc.ini

I'm getting this error:

Frpc | Error: unknown command "./frpc" for "frpc"
Frpc | Run 'frpc --help' for usage.
Frpc exited with code 1

I don't understand as frps docker image works perfectly and seems built the same way as frpc

confile

[common]
server_addr = xxx
server_port = 7000
dashboard_port = 7500
# dashboard's username and password are both optional,if not set, default is admin.
dashboard_user = admin
dashboard_pwd = admin

[web]
type = http
local_port = 8080
custom_domains = www.example.com

I've tried to run frpc directly on my mac. It works perfectly.
But frpc container is not working

Thanks, best !

Originally created by @fredericmalo on GitHub (Nov 24, 2020). Original GitHub issue: https://github.com/fatedier/frp/issues/2110 <!-- From Chinese to English by machine translation, welcome to revise and polish. --> <!-- ⚠️⚠️ Incomplete reports will be marked as invalid, and closed, with few exceptions ⚠️⚠️ --> <!-- in addition, please use search well so that the same solution can be found in the feedback, we will close it directly --> <!-- for convenience of differentiation, use FRPS or FRPC to refer to the FRP server or client --> **[REQUIRED] hat version of frp are you using** <!-- Use ./frpc -v or ./frps -v --> Version: v0.34.3 (latest) **[REQUIRED] What operating system and processor architecture are you using** OS: Official Docker image, on macos Catalino CPU architecture: 64 **[REQUIRED] description of errors** Please try this docker-compose.yml: ``` version: "2" services: frpc: image: fatedier/frpc:v0.34.3 container_name: Frpc network_mode: "host" volumes: - ./cfg:/cfg command: ./frpc -c /cfg/frpc.ini ``` I'm getting this error: Frpc | Error: unknown command "./frpc" for "frpc" Frpc | Run 'frpc --help' for usage. Frpc exited with code 1 I don't understand as frps docker image works perfectly and seems built the same way as frpc **confile** ``` [common] server_addr = xxx server_port = 7000 dashboard_port = 7500 # dashboard's username and password are both optional,if not set, default is admin. dashboard_user = admin dashboard_pwd = admin [web] type = http local_port = 8080 custom_domains = www.example.com ``` I've tried to run frpc directly on my mac. It works perfectly. But frpc container is not working Thanks, best !
Author
Owner

@fatedier commented on GitHub (Nov 25, 2020):

I't not familiar with docker compose.

I just run container with command

docker run --rm  -v /frp/bin/frpc.ini:/etc/frpc.ini -v  -ti fatedier/frpc:test '-c=/etc/frpc.ini'

Note that we set ENTRYPOINT ["/usr/bin/frpc"] in dockerfile and the WORKDIR is /app, not /usr/bin.

<!-- gh-comment-id:733436900 --> @fatedier commented on GitHub (Nov 25, 2020): I't not familiar with docker compose. I just run container with command ``` docker run --rm -v /frp/bin/frpc.ini:/etc/frpc.ini -v -ti fatedier/frpc:test '-c=/etc/frpc.ini' ``` Note that we set `ENTRYPOINT ["/usr/bin/frpc"]` in dockerfile and the `WORKDIR` is `/app`, not `/usr/bin`.
Author
Owner

@yuyulei commented on GitHub (Nov 25, 2020):

@fredericmalo in your case, change to command: frpc -c /cfg/frpc.ini will be ok.

<!-- gh-comment-id:733588569 --> @yuyulei commented on GitHub (Nov 25, 2020): @fredericmalo in your case, change to `command: frpc -c /cfg/frpc.ini` will be ok.
Author
Owner

@fredericmalo commented on GitHub (Nov 25, 2020):

You rock, it works ! Thanks !

<!-- gh-comment-id:733959603 --> @fredericmalo commented on GitHub (Nov 25, 2020): You rock, it works ! Thanks !
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#1675
No description provided.