What happened:
sealer run my-k8s:1.28.4 \
--user root \
--passwd lih \
--masters 10.3.8.15
2024-01-11 16:38:49 [INFO] [overlay.go:754] Not using native diff for overlay, this may cause degraded performance for building images: kernel has CONFIG_OVERLAY_FS_REDIRECT_DIR enabled
2024-01-11 16:38:52 [INFO] [installer.go:233] start to create new cluster with image: docker.io/sealerio/kubernetes:v1.28.4
2024-01-11 16:38:55 [INFO] [installer.go:456] The cri is docker, cluster runtime type is kubernetes
2024-01-11 16:38:55 [INFO] [clusterfile.go:198] succeeded in saving clusterfile
bash: /var/lib/sealer/data/my-cluster/rootfs/scripts/docker.sh: No such file or directory
2024-01-11 16:38:56 [ERROR] [root.go:75] sealer-v0.11.0: failed to install docker: execute command(bash /var/lib/sealer/data/my-cluster/rootfs/scripts/docker.sh) on host (10.3.8.157): error(failed to execute command(export LocalRegistryDomain="sea.hub"; export LocalRegistryPort="5000"; export LocalRegistryURL="sea.hub:5000"; export PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin"; export RegistryDomain="sea.hub"; export RegistryPort="5000"; export RegistryURL="sea.hub:5000"; bash /var/lib/sealer/data/my-cluster/rootfs/scripts/docker.sh) on host(10.3.8.157): error(exit status 127))
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
# 1. build basefs with this command
[root@host157 basefs]# ./auto-build.sh --k8s-version=v1.28.4 --platform=amd64
# 2. install with sealer run
It seems like auto-build.sh selected containerd as CRI, but sealer run still try to find scripts/docker.sh
Anything else we need to know?:
Environment:
- sealer version (use
sealer version): {"gitVersion":"v0.11.0","gitCommit":"f07e804","buildDate":"2023-07-25 02:51:08","goVersion":"go1.17.13","compiler":"gc","platform":"linux/amd64"}
- Cloud provider or hardware configuration: vmware
- OS (e.g:
cat /etc/os-release): Anolis OS 8.8
- Kernel (e.g.
uname -a): Linux host157 5.10.134-13.an8.x86_64 #1 SMP Mon Jan 9 10:39:46 CST 2023 x86_64 x86_64 x86_64 GNU/Linux
- Install tools:
- Others: