mirror of
https://github.com/containers/podman.git
synced 2025-10-15 18:23:30 +08:00
configure runtime without store
some podman commands do not require the use of a container/image store. in those cases, it is more effecient to not open the store, because that results in having to also close the store which can be costly when the system is under heavy write I/O loads. Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
@ -300,6 +300,15 @@ func WithTmpDir(dir string) RuntimeOption {
|
||||
}
|
||||
}
|
||||
|
||||
// WithNoStore sets a bool on the runtime that we do not need
|
||||
// any containers storage.
|
||||
func WithNoStore() RuntimeOption {
|
||||
return func(rt *Runtime) error {
|
||||
rt.noStore = true
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// WithMaxLogSize sets the maximum size of container logs.
|
||||
// Positive sizes are limits in bytes, -1 is unlimited.
|
||||
func WithMaxLogSize(limit int64) RuntimeOption {
|
||||
|
Reference in New Issue
Block a user