mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
When in transient store mode, use rundir for bundlepath
This means we store things like config.json and the secret files also on tmpfs, lowering wear on disk and leaving less stuff on disk on an unclean shutdown. Signed-off-by: Alexander Larsson <alexl@redhat.com>
This commit is contained in:
@ -128,6 +128,9 @@ func (c *Container) rwSize() (int64, error) {
|
||||
// bundlePath returns the path to the container's root filesystem - where the OCI spec will be
|
||||
// placed, amongst other things
|
||||
func (c *Container) bundlePath() string {
|
||||
if c.runtime.storageConfig.TransientStore {
|
||||
return c.state.RunDir
|
||||
}
|
||||
return c.config.StaticDir
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user