package opts

import "github.com/containerd/cri/pkg/opts"

Index

Functions

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

container.go

Version
v1.0.0-alpha.0
Published
Sep 29, 2017
Platform
windows/amd64
Imports
10 packages
Last checked
2 minutes ago

Tools for package owners.