Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望能制作 arm64 的 Docker 镜像 #12

Closed
Remawater opened this issue May 9, 2022 · 10 comments
Closed

希望能制作 arm64 的 Docker 镜像 #12

Remawater opened this issue May 9, 2022 · 10 comments
Labels
enhancement New feature or request

Comments

@Remawater
Copy link

No description provided.

@Remawater Remawater changed the title 希望能能制作 arm64 的 Docker 镜像 希望能制作 arm64 的 Docker 镜像 May 9, 2022
@foamzou
Copy link
Owner

foamzou commented May 10, 2022

跑在 m1 上边吗?

@foamzou foamzou added the enhancement New feature or request label May 10, 2022
@Remawater
Copy link
Author

跑在 m1 上边吗?

斐讯N1😣

@foamzou
Copy link
Owner

foamzou commented May 12, 2022

@Remawater 你好,可以帮忙测试下吗?刚给所有平台重新 build 了一遍。还是使用 README 那个命令

@Remawater
Copy link
Author

@Remawater 你好,可以帮忙测试下吗?刚给所有平台重新 build 了一遍。还是使用 README 那个命令

好的 稍等

@Remawater
Copy link
Author

Remawater commented May 12, 2022

docker pull foamzou/melody:latest
docker run -d -p 5566:5566 -v ~/melody-profile:/app/backend/.profile foamzou/melody:latest

运行完出现了2个奇怪的容器
image

容器日志都是 stderr: standard_init_linux.go:228: exec user process caused: exec format error

@foamzou
Copy link
Owner

foamzou commented May 13, 2022

可以检查下本地拉下来的镜像是否为 arm 的

docker image inspect foamzou/melody:latest | grep Architecture

@Remawater
Copy link
Author

可以检查下本地拉下来的镜像是否为 arm 的

docker image inspect foamzou/melody:latest | grep Architecture

"Architecture": "arm64"
是Arm的 还是一样容器启动后:stderr: standard_init_linux.go:228: exec user process caused: exec format error

@foamzou
Copy link
Owner

foamzou commented May 14, 2022

原因是 docker 里基础镜像和我的media-get 之前不支持 arm64。
我重新调整和编译,并弄了个 arm64 centos 服务器测试通过了。
可以帮忙 docker pull 再 run 试试
@Remawater

@Remawater
Copy link
Author

🎇🎉🎉🎉 一切正常

@foamzou
Copy link
Owner

foamzou commented May 14, 2022

好的,谢谢反馈

@foamzou foamzou closed this as completed May 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants