Documentation ¶
Index ¶
- func CreateExitCommandArgs(storageConfig storageTypes.StoreOptions, config *config.Config, ...) ([]string, error)
- func CreateExpose(expose []string) (map[uint16]string, error)
- func CreatePortBindings(ports []string) ([]types.PortMapping, error)
- func FillOutSpecGen(s *specgen.SpecGenerator, c *entities.ContainerCreateOptions, args []string) error
- func GenRlimits(ulimits []string) ([]specs.POSIXRlimit, error)
- func GetResources(s *specgen.SpecGenerator, c *entities.ContainerCreateOptions) (*specs.LinuxResources, error)
- func LimitToSwap(memory *specs.LinuxMemory, swap string, ml int64)
- func Mounts(mountFlag []string, configMounts []string) (map[string]spec.Mount, map[string]*specgen.NamedVolume, ...)
- func ReadPodIDFile(path string) (string, error)
- func ReadPodIDFiles(files []string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateExitCommandArgs ¶
func CreateExitCommandArgs(storageConfig storageTypes.StoreOptions, config *config.Config, syslog, rm, exec bool) ([]string, error)
func CreateExpose ¶
CreateExpose parses user-provided exposed port definitions and converts them into SpecGen format. TODO: The SpecGen format should really handle ranges more sanely - we could be massively inflating what is sent over the wire with a large range.
func CreatePortBindings ¶
func CreatePortBindings(ports []string) ([]types.PortMapping, error)
CreatePortBindings iterates ports mappings into SpecGen format.
func FillOutSpecGen ¶
func FillOutSpecGen(s *specgen.SpecGenerator, c *entities.ContainerCreateOptions, args []string) error
func GenRlimits ¶ added in v4.5.0
func GetResources ¶ added in v4.3.0
func GetResources(s *specgen.SpecGenerator, c *entities.ContainerCreateOptions) (*specs.LinuxResources, error)
func LimitToSwap ¶ added in v4.1.0
func Mounts ¶ added in v4.1.0
func Mounts(mountFlag []string, configMounts []string) (map[string]spec.Mount, map[string]*specgen.NamedVolume, map[string]*specgen.ImageVolume, error)
Mounts takes user-provided input from the --mount flag as well as Mounts specified in containers.conf and creates OCI spec mounts and Libpod named volumes. podman run --mount type=bind,src=/etc/resolv.conf,target=/etc/resolv.conf ... podman run --mount type=tmpfs,target=/dev/shm ... podman run --mount type=volume,source=test-volume, ...
func ReadPodIDFile ¶
ReadPodIDFile reads the specified file and returns its content (i.e., first line).
func ReadPodIDFiles ¶
ReadPodIDFiles reads the specified files and returns their content (i.e., first line).
Types ¶
This section is empty.