Skip to content

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

@cft0808

Description

@cft0808

问题概述

当前 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions