CernVM-FS Snapshotter is a containerd snapshotter plugin that enables lazy-pulling by assembling container image layers into a stacked file system.
Prerequisites
- Install the
cvmfs-snapshotter remote snapshotter plugin. - Configure
/etc/containerd/config.toml to use the snapshotter and define the communication endpoint. - (Optional) Configure a custom CernVM-FS repository in
/etc/containerd-cvmfs-grpc/config.toml. - Start the required services.
Configuration Steps
1. Configure containerd
Add the following to /etc/containerd/config.toml to instruct containerd to use the cvmfs-snapshotter and set the gRPC proxy plugin address:
[plugins."io.containerd.grpc.v1.cri".containerd]
snapshotter = "cvmfs-snapshotter"
disable_snapshot_annotations = false
[proxy_plugins]
[proxy_plugins.cvmfs]
type = "snapshot"
address = "/run/containerd-cvmfs-grpc/containerd-cvmfs-grpc.sock"
2. Configure CernVM-FS Repository
The default repository is unpacked.cern.ch. To use a different repository, add the following to /etc/containerd-cvmfs-grpc/config.toml:
repository = "myrepo.mydomain"
3. Start Services
Launch both containerd and cvmfs-snapshotter using systemd:
systemctl start containerd cvmfs-snapshotter