fix: 为 Kata DinD 使用 guest ext4 数据盘
yaml / yaml (pull_request) Successful in 21s

This commit is contained in:
2026-09-21 11:48:57 +00:00
parent db63503ec9
commit 1ddec34149
2 changed files with 10 additions and 7 deletions
+5 -7
View File
@@ -113,20 +113,18 @@ spec:
command: [/bin/sh, -c]
args:
- |
set -eu
test -e /dev/kmsg || mknod /dev/kmsg c 1 11
apk add --no-cache e2fsprogs
truncate -s 20G /tmp/docker-data.img
mkfs.ext4 -F /tmp/docker-data.img
mount -o loop /tmp/docker-data.img /var/lib/docker
exec dockerd-entrypoint.sh dockerd \
--host=unix:///run/docker/docker.sock \
--group=2000 \
--storage-driver=overlay2
securityContext:
privileged: true
resources:
requests:
cpu: "2"
memory: 3Gi
limits:
cpu: "2"
memory: 3Gi
volumeMounts:
- name: docker-socket
mountPath: /run/docker