darwin

package module
v0.0.0-...-a5809c0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

README

containerd darwin snapshotter plugin

CI

Darwin snapshotter is a snapshotter implementation which works on darwin platform. It is backed with sparsebundle images (.sparsebundle) which is created from each layer. Due to lack of public interface (or API) to create sparsebundle images on macOS, each image creation and mount operation invoke hdiutil command, which is unfortunatelly costly (in terms of both storage space required and time completing each layer operation).

But with this snapshotter, the mount package of containerd doesn't depend on bind mount features, which is transparent from other mount implementations.

Setup

$ go build ./cmd/containerd-darwin-snapshotter-grpc
$ go build ./cmd/mount_containerd_darwin

Usage

$ ./containerd-darwin-snapshotter-grpc /var/run/containerd-darwin-snapshotter.sock /var/lib/containerd/darwin

containerd has to be also configured to utilize this snapshotter. Below is an example configuration to add the snapshotter.

[proxy_plugins]
  [proxy_plugins.darwin]
    type = "snapshot"
    address = "/tmp/ctrd/run/containerd-darwin-snapshotter.sock"

Documentation

Rendered for darwin/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSnapshotter

func NewSnapshotter(root string) (snapshots.Snapshotter, error)

NewSnapshotter returns a Snapshotter which copies layers on the underlying file system. A metadata file is stored under the root.

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL