代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/moby 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From d982ada96908ceef19f30d88ffda5e7956c2809e Mon Sep 17 00:00:00 2001
From: Super User <root@localhost.localdomain>
Date: Wed, 10 Jul 2024 17:27:20 +0800
Subject: [PATCH] fix docker swarm run failed for loongarch64
---
.../moby/swarmkit/v2/manager/scheduler/filter.go | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/vendor/github.com/moby/swarmkit/v2/manager/scheduler/filter.go b/vendor/github.com/moby/swarmkit/v2/manager/scheduler/filter.go
index 4e0bb9f..97847e1 100644
--- a/vendor/github.com/moby/swarmkit/v2/manager/scheduler/filter.go
+++ b/vendor/github.com/moby/swarmkit/v2/manager/scheduler/filter.go
@@ -305,6 +305,14 @@ func (f *PlatformFilter) platformEqual(imgPlatform, nodePlatform api.Platform) b
nodePlatform.Architecture = "arm64"
}
+ // normalize "loongarch64" architectures to "loong64"
+ if imgPlatform.Architecture == "loongarch64" {
+ imgPlatform.Architecture = "loong64"
+ }
+ if nodePlatform.Architecture == "loongarch64" {
+ nodePlatform.Architecture = "loong64"
+ }
+
if (imgPlatform.Architecture == "" || imgPlatform.Architecture == nodePlatform.Architecture) && (imgPlatform.OS == "" || imgPlatform.OS == nodePlatform.OS) {
return true
}
--
2.43.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。