containerd SquashOverlay snapshotter plugin
SquashOverlay snapshotter plugin for containerd. It is based on the overlayfs plugin and change the underlying RO layers storage to squashfs.
This plugin is tested on Linux with Fedora.
-
Build the plugin binary:
go build cmd/main.go
-
Run plugin:
./main /var/run/squashoverlay.sock /tmp/squashoverlay
, where /tmp/squashoverlay is the directory that snapshots will be stored. -
Condig containerd: add following section to your /etc/containerd/config.toml file
[proxy_plugins]
[proxy_plugins.squashoverlay]
type = "snapshot"
address = "/var/run/squashoverlay.sock"
-
Start containerd.
-
e.g.
ctr pull --snapshotter=squashoverlay ...
orCONTAINERD_SNAPSHOTTER=squashoverlay ctr ...