mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #1308] 树莓派3B+ 无法使用snowdreamtech/frpc镜像 #1036
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#1036
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 @chendachao on GitHub (Jul 7, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1308
What version of frp are you using (./frpc -v or ./frps -v)?
snowdreamtech/frpc:0.24.1What operating system and processor architecture are you using (
go env)?Raspberry pi:RaspbianConfigures you used:
Steps to reproduce the issue:
docker run --network host -d -v /etc/frp/frpc.ini:/etc/frp/frpc.ini --restart=always --name frpc snowdream/frpcDescribe the results you received:
standard_init_linux.go:207: exec user process caused "exec format error"Describe the results you expected:
snowdreamtech/frpc镜像正常运行
Additional information you deem important (e.g. issue happens only occasionally):
Can you point out what caused this issue (optional)
找到了这个 https://github.com/containers/buildah/issues/475#issuecomment-397861089 ,但是不确定要怎么改
@wmysh commented on GitHub (Jul 8, 2019):
构架错误。这个没有必要使用Docker,毕竟就只有一个二进制文件和一个配置文件,没有复杂的依赖关系。如果非要使用Docker,需要自己修改Dockerfile,自己生成容器镜像。
@chendachao commented on GitHub (Jul 8, 2019):
@WuYehow ,因为涉及到开机自启动等问题,毕竟用Docker方便一些,可以推出适合这个架构的Docker镜像吗?
@wmysh commented on GitHub (Jul 8, 2019):
我顺手改了下,你试试,不行的话把日志发出来。
@chendachao commented on GitHub (Jul 8, 2019):
构建镜像的时候遇到如下错误:
@wmysh commented on GitHub (Jul 8, 2019):
试试这个?
@chendachao commented on GitHub (Jul 8, 2019):
同样的问题,你可以在本地试一下
@vritser commented on GitHub (Jul 8, 2019):
可以使用我的镜像: vritser/frpc:arm64
@chendachao commented on GitHub (Jul 8, 2019):
@vritser, 同样的问题:
@vritser commented on GitHub (Jul 8, 2019):
@chendachao 建议拷贝一份 Dockerfile 自己调试,我家里的树莓派都是 arm64v8 的
@chendachao commented on GitHub (Jul 8, 2019):
@vritser, 多谢,我调试了很多,明天安装ubuntu mate试试
@chendachao commented on GitHub (Jul 10, 2019):
安装了ubuntu mate和ubuntu core,都是同样的问题,docker基础镜像我选择了ubuntu 18.04
@status301 commented on GitHub (Jul 10, 2019):
@snowdream commented on GitHub (Jul 14, 2019):
@chendachao snowdreamtech/frpc 是我构建的,目前只支持linux x64的CPU 架构。
树莓派3B+ 应该是arm架构,所以会出现standard_init_linux.go:211: exec user process caused "exec format error"
snowdreamtech/frpc
snowdreamtech/frps
是基于alpine和frp构建的,特点就是安装包小。
源码:https://github.com/snowdreamtech/frp
正在学习如何打包多CPU架构的docker。
有熟悉怎么打包的麻烦介绍一下。
@jinmiaoluo commented on GitHub (Jul 17, 2019):
我打包了 arm, arm64, i386, x86_64 的多平台镜像. 通过 manifest list 实现. Docker 会自动根据平台拉取对应的真实镜像. 地址如下:
frpc: https://hub.docker.com/r/jinmiaoluo/frpc
frps: https://hub.docker.com/r/jinmiaoluo/frps