logo
37
146
WeChat Login

buildx tag 的问题#1330

Resolved
created 2025-07-22
Edit

提供一下 trace id 或 响应头 traceparent?

No response

描述一下重现步骤?更快的确认问题

#1076 后续

我在 https://cnb.cool/hex/loong/docker-buildx-multi-platform-example 仓库中做了测试。

当 使用 tags: cnb:arch:amd64:containerd-snapshotter 的tag时候,构建失败了。

代码:hex/loong/docker-buildx-multi-platform-example@efbdf21c
流水线:https://cnb.cool/hex/loong/docker-buildx-multi-platform-example/-/build/logs/cnb-fa8-1j0msv1s9

当去掉这个tag的时候,构建是好的,同时我也测试了在vsc中的情况,构建也是好的。

代码:https://cnb.cool/hex/loong/docker-buildx-multi-platform-example
流水线:https://cnb.cool/hex/loong/docker-buildx-multi-platform-example/-/build/logs/cnb-0hg-1j0np7eak

vsc 环境:
060c36e2-30b2-4479-9c1c-5f3832fcde1c.png

比较了一下ci和vsc的inspect,发现存在下面的差异:

vsc的支持是完整的:
a56517ef-600c-4b67-96ea-ca056270111b.png

ci 使用 tags: cnb:arch:amd64:containerd-snapshotter 仅支持有限的架构:
230a5329-46b4-42c8-b401-b7ae503cf72b.png

原因:

  1. 加tag那台机器, qemu安装有问题,没有支持loong64平台,已重新安装
  2. 其他的机器目前也都安装上了buildx + qemu, 指定单个平台进行构建,也是可以的
Resolved ISSUE
Assignee
None yet
Label
None yet
Priority
None yet
Time period
-
Property
Add custom properties to record and label key information
Participant