edict icon indicating copy to clipboard operation
edict copied to clipboard

[跟踪] Docker 镜像缺少 amd64/x86_64 支持

Open cft0808 opened this issue 8 months ago • 2 comments

问题概述

当前 Docker Hub 上的 cft0808/sansheng-demo 镜像仅包含 linux/arm64 架构,导致所有 x86_64 (amd64) 用户无法使用 Docker 一键体验功能。

复现

docker run --platform linux/amd64 -p 7891:7891 cft0808/sansheng-demo
# ERROR: image platform (linux/arm64/v8) does not match (linux/amd64)

建议方案

  1. 使用 docker buildx 构建多架构镜像:
    docker buildx build --platform linux/amd64,linux/arm64 -t cft0808/sansheng-demo --push .
    
  2. CI/CD 集成:在 GitHub Actions 中自动构建并推送多架构镜像
  3. Dockerfile 检查:确保没有依赖仅 arm64 的二进制文件

影响范围

绝大多数云服务器和桌面 Linux 用户使用 x86_64 架构,此问题阻塞了大量用户的 Docker 快速体验流程。

关联 Issues

  • #178 #184 #185 (均为同一问题的重复报告)

cft0808 avatar Mar 24 '26 15:03 cft0808

📜 此 Issue 已超过 60 天没有活动。 如果问题仍然存在,请回复更新状态;否则此 Issue 将在 30 天后自动关闭。 感谢你的贡献!

github-actions[bot] avatar May 25 '26 03:05 github-actions[bot]

🏛️ 此 Issue 因长期无活动已自动关闭。 如需重新讨论,欢迎随时重新打开或创建新 Issue。

github-actions[bot] avatar Aug 24 '26 02:08 github-actions[bot]