package opts
import "github.com/containerd/cri/pkg/containerd/opts"
Index ¶
- func WithContainerdShimCgroup(path string) containerd.NewTaskOpts
- func WithNewSnapshot(id string, i containerd.Image) containerd.NewContainerOpts
- func WithVolumes(volumeMounts map[string]string) containerd.NewContainerOpts
Functions ¶
func WithContainerdShimCgroup ¶
func WithContainerdShimCgroup(path string) containerd.NewTaskOpts
WithContainerdShimCgroup returns function that sets the containerd shim cgroup path
func WithNewSnapshot ¶
func WithNewSnapshot(id string, i containerd.Image) containerd.NewContainerOpts
WithNewSnapshot wraps `containerd.WithNewSnapshot` so that if creating the snapshot fails we make sure the image is actually unpacked and and retry.
func WithVolumes ¶
func WithVolumes(volumeMounts map[string]string) containerd.NewContainerOpts
WithVolumes copies ownership of volume in rootfs to its corresponding host path. It doesn't update runtime spec. The passed in map is a host path to container path map for all volumes. TODO(random-liu): Figure out whether we need to copy volume content.
Source Files ¶
- Version
- v1.0.1
- Published
- May 22, 2018
- Platform
- js/wasm
- Imports
- 12 packages
- Last checked
- 4 hours ago –
Tools for package owners.