mirror of
https://github.com/containers/podman.git
synced 2025-10-24 15:03:45 +08:00
runtime: Handle the transient store options
This handles the transient store options from the container/storage configuration in the runtime/engine. Changes are: * Print transient store status in `podman info` * Print transient store status in runtime debug output * Add --transient-store argument to override config option * Propagate config state to conmon cleanup args so the callback podman gets the same config. Note: This doesn't really change any behaviour yet (other than the changes in containers/storage). Signed-off-by: Alexander Larsson <alexl@redhat.com>
This commit is contained in:
@ -50,9 +50,10 @@ type PodmanConfig struct {
|
||||
Trace bool // Hidden: Trace execution
|
||||
URI string // URI to RESTful API Service
|
||||
|
||||
Runroot string
|
||||
StorageDriver string
|
||||
StorageOpts []string
|
||||
SSHMode string
|
||||
MachineMode bool
|
||||
Runroot string
|
||||
StorageDriver string
|
||||
StorageOpts []string
|
||||
SSHMode string
|
||||
MachineMode bool
|
||||
TransientStore bool
|
||||
}
|
||||
|
||||
@ -171,6 +171,9 @@ func getRuntime(ctx context.Context, fs *flag.FlagSet, opts *engineOpts) (*libpo
|
||||
storageOpts.GraphDriverOptions = cfg.StorageOpts
|
||||
}
|
||||
}
|
||||
if fs.Changed("transient-store") {
|
||||
options = append(options, libpod.WithTransientStore(cfg.TransientStore))
|
||||
}
|
||||
if opts.migrate {
|
||||
options = append(options, libpod.WithMigrate())
|
||||
if opts.name != "" {
|
||||
|
||||
@ -282,6 +282,7 @@ func CreateExitCommandArgs(storageConfig storageTypes.StoreOptions, config *conf
|
||||
"--network-config-dir", config.Network.NetworkConfigDir,
|
||||
"--network-backend", config.Network.NetworkBackend,
|
||||
"--volumepath", config.Engine.VolumePath,
|
||||
fmt.Sprintf("--transient-store=%t", storageConfig.TransientStore),
|
||||
}
|
||||
if config.Engine.OCIRuntime != "" {
|
||||
command = append(command, []string{"--runtime", config.Engine.OCIRuntime}...)
|
||||
|
||||
Reference in New Issue
Block a user