Repository navigation
Description
What is the problem you're trying to solve
containerd currently does not provide official support for the LoongArch (also known as Loongson, loong64) architecture. LoongArch is a domestic CPU architecture developed in China, and it has gained significant traction in the domestic ecosystem — including Loongson 3A5000/3A6000 series processors, the Loongnix and UOS operating systems, and an increasing number of deployments in data centers, cloud environments, and edge computing scenarios.
Without official linux/loong64 support in containerd, users on LoongArch hardware face the following difficulties:
- No prebuilt binary releases: Users must compile containerd and its dependencies (like runc) from source on LoongArch hosts, which is time-consuming, error-prone, and not feasible for production environments.
- No CI coverage: There is no automated testing on LoongArch, so regressions that break LoongArch compatibility may go unnoticed.
- Missing multi-arch image manifests: Official container images cannot be pulled natively on LoongArch hosts without manually building and tagging architecture-specific images.
- Ecosystem fragmentation: Downstream projects (Kubernetes, K3s, etc.) that depend on containerd cannot easily support LoongArch without containerd supporting it first.
Describe the solution you'd like
I would like containerd to officially support the linux/loong64 platform as a first-class architecture, including:
-
Binary releases: Provide prebuilt
containerd(and related binaries likecontainerd-shim-runc-v2,ctr, etc.) forlinux/loong64as part of the GitHub Releases artifacts. -
Multi-arch container images: Build and push multi-arch container images (e.g.,
docker.io/library/containerd:latest) that include alinux/loong64manifest, allowing native image pulls on LoongArch machines. -
CI pipeline: Add a LoongArch build and smoke-test stage to the project's CI (GitHub Actions with QEMU user-mode emulation or a self-hosted LoongArch runner) to catch regressions early.
-
Documentation: Add LoongArch to the list of supported architectures in the project README and installation guide, with links to the appropriate binary/image artifacts.
-
Go compilation target: Ensure the build system and
MakefilerecognizeGOARCH=loong64andGOOS=linuxas a valid compilation target.
Go has supported GOARCH=loong64 since Go 1.21 (as a first-class port), so the compiler and standard library are ready.
Additional context
Relevant links
- Go LoongArch port tracking issue: all: port to linux/loong64 golang/go#46229
- Go 1.21 release notes (loong64 promoted to first-class port): https://go.dev/doc/go1.21#loong64
- Loongson official website: https://www.loongson.cn
Status of dependencies
| Dependency | LoongArch Support | Notes |
|---|---|---|
| Go | ✅ First-class | Supported since Go 1.21 |
| containerd | ❌ Not yet | This request |
Use cases
- Cloud-native infrastructure on domestic CPUs: Government and enterprise customers in China are increasingly adopting LoongArch servers; they need containerd as the container runtime for Kubernetes clusters.
- Edge computing: LoongArch-based edge devices need lightweight container runtimes like containerd.
- Development and CI/CD: Developers targeting LoongArch need prebuilt binaries for local development and CI testing.
Potential implementation considerations
- Go 1.21+ is required for
loong64support; the containerd build system should ensure the minimum Go version is met. - QEMU 7.1+ provides
qemu-loongarch64for user-mode emulation, which can be used in GitHub Actions for cross-compilation testing. - The Linux kernel has supported LoongArch since 5.19 (upstream); LoongArch-based distributions (Loongnix, UOS) typically ship with kernel >= 5.10 (with backported LoongArch patches).
- If self-hosted CI runners are needed, Loongson hardware (e.g., 3A6000-based machines) running Loongnix or a LoongArch-compatible Linux distribution can be configured as GitHub Actions runners.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
samuelkarp commentedon Jun 22, 2026
The only platforms with first-class support in containerd are:
We currently produce release builds of these other platforms, but have no testing infrastructure for them and they are supported on a best-effort basis only:
We have test compilation for these other platforms, but do not have further testing infrastructure, so these are even less of a best-effort basis:
Our Linux releases are primarily tested on Ubuntu via GitHub actions. While we have VM-based tests for Fedora and Alma Linux, the VM infrastructure is particularly unreliable and slow.
I don't think it'd be a problem to add test compilation for loong64. This at least would make sure we don't break compilation as we continue to develop containerd. However, I'm iffy about producing release builds without either (a) a way to test ourselves or (b) someone invested in providing a degree of testing and support for the platform (i.e., IBM for ppc64le and s390x).
I think adding additional VM-based tests would only exacerbate problems we already have today, so I don't think that's currently a good idea. We do not have any Loongson hardware available or anyone to administer self-hosted runners today, so I also don't think that's currently a good option.
Comment out linux/loong64 release build entry
xuxiaowei-com-cn commentedon Jun 22, 2026
Comment out linux/loong64 release build entry
dims commentedon Jun 22, 2026
@samuelkarp xref:
chore: Comment out linux/loong64 release build entry
xuxiaowei-com-cn commentedon Jun 23, 2026
@samuelkarp
Dear team, PR #13642 has been approved.
Please note that this PR does not include a release. Should any adjustments be required, please do not hesitate to reach out to me, and I will handle them in a timely manner.
samuelkarp commentedon Jun 23, 2026
Approved by who? There are no reviews on that PR, much less approvals.
chore: Comment out linux/loong64 release build entry
feat: add loong64 (LoongArch) build support
feat: add loong64 (LoongArch) build support
feat: add loong64 (LoongArch) build support
feat: add loong64 (LoongArch) build support
feat: add loong64 (LoongArch) build support