The official openEuler container image as an application base — docker_img artifact-tree findings, minimal rootfs traits and multi-arch notes
Verification scope
Section titled “Verification scope”This page’s evidence has two tracks:
Container track (E2) — the openeuler/openeuler:latest image this site keeps using (= 24.03 LTS SP4, sha256:17c15554…4558e, aarch64): base-trait verification covers dnf/rpm versions and repository configuration (P1, evidence/logs/openeuler-p1-facts.log), the docker_img/ artifact tree (P2, evidence/logs/openeuler-p2-artifacts.log), and package install & image loading (P4, evidence/logs/openeuler-p4-isulad-vm.log) — supported per-item across P1/P2/P4.
Artifact-tree probe (E2) — the official image tree’s docker_img/ directory is present (probed 2026-11-04, evidence/logs/openeuler-p2-artifacts.log).
Why the official container image as base
Section titled “Why the official container image as base”- Same origin as the server: the package chain inside the container matches the host openEuler (same
.oe2403sp4marker) — dev containers, CI build containers and production hosts line up, eliminating the “installs in CI, fails in production” drift; - Toolchain ready: dnf 4.16.2 plus a complete repository configuration (verified) works out of the box, saving the repo-bootstrap layer compared with building from scratch;
- Multi-arch: the official image tree publishes per architecture (this site’s E2 uses aarch64, the VM side x86_64).
Base-image facts at a glance
Section titled “Base-image facts at a glance”$ cat /etc/os-release # VERSION="24.03 (LTS-SP4)"$ dnf --version # 4.16.2 (no apt-get; this is the dnf world)$ dnf repolist # EPOL/OS/everything/update… 7 repositories preconfiguredDockerfile migration notes
Section titled “Dockerfile migration notes”Migrating an existing Dockerfile onto an openEuler base — three high-frequency changes (package-name/casing differences come from testing; the 302 phenomenon was a one-off reachability probe):
- Package names:
apt-get→dnf; docker.io-styledocker-ce→ openEuler’sdocker-engine(or a container may not need docker at all — use the host);epel-releasedoes not exist (extra software goes through EPOL, already in the default repos); - Casing:
dnf install isuladfails whileiSuladsucceeds (same forBiSheng-*) — a casing typo in CI breaks the pipeline directly; - Repository pinning: reachability of the official source’s 302 redirect varies across networks (one 302 recorded in this site’s container testing; the intermittent-timeout error shape and a real VM DNS failure are in the troubleshooting page) — production Dockerfiles pin baseurl to a mirror (Huawei Cloud / Tsinghua), one
sedaway (template on the EPOL page).
Trade-offs vs common base images
Section titled “Trade-offs vs common base images”| Base | Size | Package mgmt | Fits |
|---|---|---|---|
| Official openEuler image | Medium (a few hundred MB, estimated, untested) | dnf/yum+rpm | Artifacts on openEuler hosts, domestic-compliance scenarios |
| Alpine | Tiny | apk | Extreme size, mostly static linking |
| Ubuntu/Debian | Large | apt | General artifacts with broad ecosystem dependencies |
The openEuler base’s value is not “smaller than whom” — it is origin alignment with the openEuler production host. If your production hosts are openEuler, choosing it as the base surfaces ABI and package-version issues before production.
Unverified
Section titled “Unverified”- Multi-arch builds untested (buildx multi-platform builds of the openEuler base image — this page only has independent aarch64-container and x86_64-VM facts);
- Image-layer slimming (layer-size comparison of dnf clean all / —installroot) not benchmarked;
- Concrete tag list inside docker_img/ not enumerated (defer to the official image tree at the time).