mirror of
https://github.com/containers/podman
synced 2024-10-19 08:44:11 +00:00
Merge pull request #16826 from alexlarsson/quadlet-more-defaults
quadlet: Default VolatileTmp to off
This commit is contained in:
commit
2a48296b0b
|
@ -194,9 +194,9 @@ The timezone to run the container in.
|
|||
If enabled, the container will have a minimal init process inside the
|
||||
container that forwards signals and reaps processes.
|
||||
|
||||
#### `VolatileTmp=` (default to `yes`)
|
||||
#### `VolatileTmp=` (default to `no`, or `yes` if `ReadOnly` enabled)
|
||||
|
||||
If enabled (and it is by default), the container will have a fresh tmpfs mounted on `/tmp`.
|
||||
If enabled, the container will have a fresh tmpfs mounted on `/tmp`.
|
||||
|
||||
**NOTE:** Podman will automatically copy any content from the image onto the tmpfs
|
||||
|
||||
|
|
|
@ -329,8 +329,7 @@ func ConvertContainer(container *parser.UnitFile, isUser bool) (*parser.UnitFile
|
|||
podman.add("--read-only")
|
||||
}
|
||||
|
||||
// We want /tmp to be a tmpfs, like on rhel host
|
||||
volatileTmp := container.LookupBoolean(ContainerGroup, KeyVolatileTmp, true)
|
||||
volatileTmp := container.LookupBoolean(ContainerGroup, KeyVolatileTmp, false)
|
||||
if volatileTmp {
|
||||
/* Read only mode already has a tmpfs by default */
|
||||
if !readOnly {
|
||||
|
|
|
@ -3,4 +3,5 @@
|
|||
|
||||
[Container]
|
||||
Image=localhost/imagename
|
||||
VolatileTmp=yes
|
||||
ReadOnly=no
|
||||
|
|
Loading…
Reference in a new issue