Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrEmptyRootFS is returned when RootFS field is empty when trying to create a container ErrEmptyRootFS = errors.New("RootFS of the container creation data cannot be empty") )
Functions ¶
func New ¶
func New(root string, containerd string) pkg.ContainerModule
New return an new pkg.ContainerModule
func WithCPUCount ¶
WithCPUCount configure the CPU cgroup to limit the amount of CPU used by the container
func WithMemoryLimit ¶
WithMemoryLimit sets the `Linux.LinuxResources.Memory.Limit` section to the `limit` specified if the `Linux` section is not `nil`. Additionally sets the `Windows.WindowsResources.Memory.Limit` section if the `Windows` section is not `nil`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.