containerd / nydus-snapshotter

A containerd snapshotter with data deduplication and lazy loading in P2P fashion
https://nydus.dev/
Apache License 2.0
156 stars 87 forks source link

When booting an image using tarfs mode, an error occurs stating that files within the image cannot be found #567

Open jinteng123 opened 6 months ago

jinteng123 commented 6 months ago

version: containerd v1.7.8 nydus-static-v2.3.0-alpha.1-linux-amd64 nydus-snapshotter-v0.13.4

nydus/config.toml:

version = 1 root = "/var/lib/containerd-nydus" address = "/run/containerd-nydus/containerd-nydus-grpc.sock" daemon_mode = "none"

[daemon] fs_driver = "blockdev" nydusimage_path = "/usr/local/bin/nydus-image"

[remote] skip_ssl_verify = true

[snapshot] enable_kata_volume = true

[experimental.tarfs] enable_tarfs = true mount_tarfs_on_host = false export_mode = "image_block"

kernel 6.6.6-1.el7

nerdctl run --snapshotter nydus --rm nginx

image

jinteng123 commented 6 months ago

containerd-nydus-grpc.log this is containerd-nydus-grpc log

ChengyuZhu6 commented 6 months ago

Hi, if you want to run a container with runc when enabling tarfs mode, you could try to set enable_kata_volume to false.

jinteng123 commented 6 months ago

image After modifying the configuration, this error occurred

imeoer commented 2 months ago

cc @jiangliu