AkihiroSuda / zfs

ZFS snapshotter plugin for containerd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

containerd ZFS snapshotter plugin

Build Status codecov

ZFS snapshotter plugin for containerd.

This plugin is tested on Ubuntu, but should work on FreeBSD as well when containerd supports them.

Compile

To compile containerd with ZFS support, add the import into the $GOPATH/src/github.com/containerd/containerd/cmd/containerd/builtins_zfs.go file.

// +build linux freebsd

package main

import (
        _ "github.com/containerd/zfs"
)

Please refer to .travis.yml for the latest containerd version known to work with.

Usage

  1. Set up a ZFS filesystem. The ZFS filesystem name is arbitrary but the mount point needs to be /var/lib/containerd/io.containerd.snapshotter.v1.zfs, when the containerd root is set to /var/lib/containerd.
$ zfs create -o mountpoint=/var/lib/containerd/io.containerd.snapshotter.v1.zfs your-zpool/containerd
  1. Start containerd.

  2. e.g. ctr pull --snapshotter=zfs ...

About

ZFS snapshotter plugin for containerd

License:Apache License 2.0


Languages

Language:Go 100.0%