MCPcopy
hub / github.com/containerd/containerd / WithNewSnapshotView

Function WithNewSnapshotView

client/container_opts.go:248–250  ·  view source on GitHub ↗

WithNewSnapshotView allocates a new snapshot to be used by the container as the root filesystem in read-only mode

(id string, i Image, opts ...snapshots.Opt)

Source from the content-addressed store, hash-verified

246// WithNewSnapshotView allocates a new snapshot to be used by the container as the
247// root filesystem in read-only mode
248func WithNewSnapshotView(id string, i Image, opts ...snapshots.Opt) NewContainerOpts {
249 return withNewSnapshot(id, i, true, opts...)
250}
251
252func withNewSnapshot(id string, i Image, readonly bool, opts ...snapshots.Opt) NewContainerOpts {
253 return func(ctx context.Context, client *Client, c *containers.Container) error {

Callers 1

Calls 1

withNewSnapshotFunction · 0.85

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…