This doc includes:
- Install Go >= 1.22.x
- Install runc >= 1.0
- Install containerd >= 1.4.x (1.6.x is preferred)
You need git to checkout the source code and compile:
git clone https://github.com/containerd/accelerated-container-image.git
cd accelerated-container-image
make
The snapshotter and ctr plugin are generated in bin
.
sudo mkdir /etc/overlaybd-snapshotter
sudo cat <<-EOF | sudo tee /etc/overlaybd-snapshotter/config.json
{
"root": "/var/lib/overlaybd/",
"address": "/run/overlaybd-snapshotter/overlaybd.sock"
}
EOF
sudo cat <<-EOF | sudo tee --append /etc/containerd/config.toml
[proxy_plugins.overlaybd]
type = "snapshot"
address = "/run/overlaybd-snapshotter/overlaybd.sock"
EOF
# run snapshotter plugin
sudo bin/overlaybd-snapshotter
# restart containerd
sudo systemctl restart containerd