mirror of
https://github.com/containers/podman.git
synced 2025-10-13 01:06:10 +08:00
quadlet: support Memory=
in [Container]
sections
Maps to the `--memory=` flag. Signed-off-by: Ben Boeckel <mathstuf@gmail.com>
This commit is contained in:
@ -122,6 +122,7 @@ const (
|
||||
KeyLogDriver = "LogDriver"
|
||||
KeyLogOpt = "LogOpt"
|
||||
KeyMask = "Mask"
|
||||
KeyMemory = "Memory"
|
||||
KeyMount = "Mount"
|
||||
KeyNetwork = "Network"
|
||||
KeyNetworkAlias = "NetworkAlias"
|
||||
@ -240,6 +241,7 @@ var (
|
||||
KeyLogDriver: true,
|
||||
KeyLogOpt: true,
|
||||
KeyMask: true,
|
||||
KeyMemory: true,
|
||||
KeyMount: true,
|
||||
KeyNetwork: true,
|
||||
KeyNetworkAlias: true,
|
||||
@ -635,6 +637,7 @@ func ConvertContainer(container *parser.UnitFile, isUser bool, unitsInfoMap map[
|
||||
KeyStopSignal: "--stop-signal",
|
||||
KeyStopTimeout: "--stop-timeout",
|
||||
KeyPull: "--pull",
|
||||
KeyMemory: "--memory",
|
||||
}
|
||||
lookupAndAddString(container, ContainerGroup, stringKeys, podman)
|
||||
|
||||
|
Reference in New Issue
Block a user