mirror of
https://github.com/containers/podman.git
synced 2026-03-13 08:01:19 +08:00
Merge pull request #10220 from giuseppe/rm-volatile
podman: set volatile storage flag for --rm containers
This commit is contained in:
@@ -200,6 +200,9 @@ func createContainerOptions(ctx context.Context, rt *libpod.Runtime, s *specgen.
|
||||
if s.Umask != "" {
|
||||
options = append(options, libpod.WithUmask(s.Umask))
|
||||
}
|
||||
if s.Volatile {
|
||||
options = append(options, libpod.WithVolatile())
|
||||
}
|
||||
|
||||
useSystemd := false
|
||||
switch s.Systemd {
|
||||
|
||||
@@ -256,6 +256,9 @@ type ContainerStorageConfig struct {
|
||||
// Secrets are the secrets that will be added to the container
|
||||
// Optional.
|
||||
Secrets []string `json:"secrets,omitempty"`
|
||||
// Volatile specifies whether the container storage can be optimized
|
||||
// at the cost of not syncing all the dirty files in memory.
|
||||
Volatile bool `json:"volatile,omitempty"`
|
||||
}
|
||||
|
||||
// ContainerSecurityConfig is a container's security features, including
|
||||
|
||||
Reference in New Issue
Block a user