如何在 crio 容器内启用覆盖?

如何在 crio 容器内启用覆盖?

对于 Gitlab ci/cd,我有以下基础设施:有一个 Gitlab 实例,它通过gitlab kubernetes 运行器

当有提交时,运行器会拾取作业并在 kubernetes pod 中运行它。每个项目的首要任务是构建一个容器并将其推送到容器注册表,以供稍后使用。

我遇到的问题是,当buildah bud ...在 kubernetes pod 内部运行时,它无法安装覆盖文件系统。

如何在 crio 容器内启用安装覆盖文件系统?

这是我的输出buildah bud

...
Copying blob sha256:9928ff0f1741a74ebd8f82bf56322a0169b9901883323cd810d80e8d3af7f51b
Copying config sha256:c5a6c2ac7afd5f1f541d654e59debec00498486ba2c3e2cd38cff05f703d8a4d
Writing manifest to image destination
Storing signatures
time="2023-06-06T10:24:49Z" level=error msg="error unmounting /var/lib/containers/storage/overlay/75c69d9bd322e8ac07ce754d3f0e68b01b6d082f9701116e1864ce2e8c63a906/merged: invalid argument"
error mounting new container: error mounting build container "8514760fdd9c656efafdefb602d464771bcc0762efc6b29d3ad57e7d0ab067bd": error creating overlay mount to /var/lib/containers/storage/overlay/75c69d9bd322e8ac07ce754d3f0e68b01b6d082f9701116e1864ce2e8c63a906/merged, mount_data="nodev,fsync=0,lowerdir=/var/lib/containers/storage/overlay/l/FWXYQPACKGWNR2OQEH25EZPILD:/var/lib/containers/storage/overlay/l/MAGCHXOJAEEM77SV4KGFRTBSQL:/var/lib/containers/storage/overlay/l/AWTORVTBH6UYQ6TDZEFJ4RITXL:/var/lib/containers/storage/overlay/l/2ECERDL4UK7GOKTU4V5OSEED44:/var/lib/containers/storage/overlay/l/DFU4RMA5FXX5KRJHFTUTTECUPC:/var/lib/containers/storage/overlay/l/BKMFQ7S3D65ATHGKAHDLC7CKHX:/var/lib/containers/storage/overlay/l/2JV3GRA5WEL6BJEX7ADMHE2ICT:/var/lib/containers/storage/overlay/l/QYTJ4UH5GA2DZR5DCSRJWLIHVQ,upperdir=/var/lib/containers/storage/overlay/75c69d9bd322e8ac07ce754d3f0e68b01b6d082f9701116e1864ce2e8c63a906/diff,workdir=/var/lib/containers/storage/overlay/75c69d9bd322e8ac07ce754d3f0e68b01b6d082f9701116e1864ce2e8c63a906/work,volatile": using mount program /usr/bin/fuse-overlayfs: fuse: device not found, try 'modprobe fuse' first
fuse-overlayfs: cannot mount: No such file or directory
: exit status 1
time="2023-06-06T10:24:49Z" level=error msg="exit status 125"
building failed with exit code 125

相关内容