Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

`docker extension validate` failure

未关闭
#305 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
docker
领域
cli

调研方向

Start with the docker extension validate command and compare its platform check with the docker buildx imagetools inspect output shown in the report. Reproduce the steps using the listed Docker Extension and Docker versions, then confirm that validation accepts the image's linux/amd64 and linux/arm64 manifests without the incorrect --platform error.

由索引模型根据 Issue 内容生成。

描述

bug

Describe the bug
After generating the sample extension, docker extension validate reports an error ERRO Use "--platform=linux/amd64,linux/arm64" when pushing your image to DockerHub that does not seem to be correct.

Add the steps to reproduce

  1. docker extension init awesome-extension
  2. change TAG?=1.0.0 in Makefile
  3. make push-extension
  4. docker extension validate doberkofler/awesome-extension

Describe the expected behavior
Given that docker buildx imagetools inspect doberkofler/awesome-extension:1.0.0 reports the two platforms, why does validate report an error?

Name:      docker.io/doberkofler/awesome-extension:1.0.0
MediaType: application/vnd.oci.image.index.v1+json
Digest:    sha256:9e946aac7b2638347991eb23a6bb87292a7acadc85b2461bd2ecf71f3ad303a3
           
Manifests: 
  Name:        docker.io/doberkofler/awesome-extension:1.0.0@sha256:d2699376344f37b5fe5dff18d838d9a08a2a062a9ce5cea09fedde7fa2c6f165
  MediaType:   application/vnd.oci.image.manifest.v1+json
  Platform:    linux/amd64
               
  Name:        docker.io/doberkofler/awesome-extension:1.0.0@sha256:7c1c04c35593183c429e2260386b5945028c84a608345c3322d5e8be29dc647d
  MediaType:   application/vnd.oci.image.manifest.v1+json
  Platform:    linux/arm64
               
  Name:        docker.io/doberkofler/awesome-extension:1.0.0@sha256:935de2c9a0a412851af5c03029e4faef71e15d6b5edf503a00230b19fb42d1b4
  MediaType:   application/vnd.oci.image.manifest.v1+json
  Platform:    unknown/unknown
  Annotations: 
    vnd.docker.reference.digest: sha256:d2699376344f37b5fe5dff18d838d9a08a2a062a9ce5cea09fedde7fa2c6f165
    vnd.docker.reference.type:   attestation-manifest
               
  Name:        docker.io/doberkofler/awesome-extension:1.0.0@sha256:0a9ac38c5ba4fd7c4f3c381ab52f36ed54b9a33c35f66f15a3bd57495f617440
  MediaType:   application/vnd.oci.image.manifest.v1+json
  Platform:    unknown/unknown
  Annotations: 
    vnd.docker.reference.digest: sha256:7c1c04c35593183c429e2260386b5945028c84a608345c3322d5e8be29dc647d
    vnd.docker.reference.type:   attestation-manifest

Output of docker extension version:

Client Version: v0.2.31
Server API Version: 0.4.2

Output of docker version:

Client:
 Version:           28.5.1
 API version:       1.51
 Go version:        go1.24.8
 Git commit:        e180ab8
 Built:             Wed Oct  8 12:16:17 2025
 OS/Arch:           darwin/amd64
 Context:           desktop-linux

Server: Docker Desktop 4.50.0 (209931)
 Engine:
  Version:          28.5.1
  API version:      1.51 (minimum version 1.24)
  Go version:       go1.24.8
  Git commit:       f8215cc
  Built:            Wed Oct  8 12:17:24 2025
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.7.27
  GitCommit:        05044ec0a9a75232cad458027ca83437aae3f4da
 runc:
  Version:          1.2.5
  GitCommit:        v1.2.5-0-g59923ef
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
主要语言
没有语言数据
星标
157
派生
56
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

docker/extensions-sdk 的其他 Issue

查看 docker/extensions-sdk 的全部 Issue

相似的 Issue

更多 CLI Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。