iSulad 配置进阶 — daemon.json 实测、isula 命令面与 Docker CLI 对照(含「pull 必须全限定名」的坑)
本页证据为实机轨(E3)——VM 381 euler24-lab(openEuler 24.03 LTS SP4,x86_64,离线 DVD 源,2026-11-05):iSulad 安装/配置/启动/镜像装载/容器运行全链。原始日志:evidence/logs/openeuler-p4-isulad-vm.log。
安装与启动(实测)
Section titled “安装与启动(实测)”$ dnf -y install iSulad # 注意大写 S(见包名地图)iSulad-2.1.6-2.oe2403sp4.x86_64$ isula --versionVersion 2.1.6, commit fef0df3…$ systemctl start isulad && systemctl is-active isuladactive配置文件在 /etc/isulad/:daemon.json(主配置)、daemon_constants.json、seccomp_default.json(默认 seccomp 档案单独成文件——安全面比 docker 的内联默认更可审计)。
daemon.json 关键项(实测值)
Section titled “daemon.json 关键项(实测值)”storage-driver : overlay2 # 与 docker 一致的驱动group : isula # socket 属组(docker 的是 docker 组)registry-mirrors : [] # 空默认,按需配国内镜像pod-sandbox-image : (空) # CRI 沙箱基础镜像,接 K8s 时必须填(见 K8s 篇)实测坑:pull 必须全限定镜像名
Section titled “实测坑:pull 必须全限定镜像名”$ isula pull busyboxFailed to pull image busybox with error: Invalid image name, no host foundiSulad 不替你默认 docker.io——busybox 要写成 docker.io/library/busybox。从 docker 习惯迁来的脚本批量踩这个坑。离线环境的正解是 isula load -i <tar>:本实验用 docker-archive 格式的 busybox tar(skopeo 制作)装载成功并运行:
$ isula load -i /tmp/busybox-amd64.tarLoad image from "/tmp/busybox-amd64.tar" success$ isula run --rm docker.io/library/busybox:latest echo "hello from isula on openEuler"hello from isula on openEuler$ isula imagesbusybox latest aaef90e06523 … 4.241MBisula 与 docker 的 CLI 对照
Section titled “isula 与 docker 的 CLI 对照”实测 isula --help 里有 12 个与 docker 同名的子命令(docker-cli-compare 计数):run/pull/images/ps/exec/inspect/stop/rm/rmi/stats/info/version(全量子命令清单原文见 evidence/logs/openeuler-p6-supplement2.log)——日常肌肉记忆基本平移,差异集中在:镜像名全限定、--rm 行为一致性以实测为准、以及没有 docker compose 生态(编排走 K8s 或 K8s 轻量替代)。
- isula 与 docker CLI 的逐参数差异矩阵未做全量比对(本页锚定高频子命令面);
- registry-mirrors 生效路径未实测(隔离网无外网;配置面与 docker 同构);
- seccomp_default.json 的定制未展开(安全篇再叙);
- aarch64 容器(本站 E2 容器轨)里的 iSulad 行为与 x86_64 VM 的差异未对照。