Merge pull request #10220 from giuseppe/rm-volatile

podman: set volatile storage flag for --rm containers
This commit is contained in:
OpenShift Merge Robot
2021-05-05 14:28:10 -04:00
committed by GitHub
6 changed files with 25 additions and 0 deletions

View File

@@ -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 {

View File

@@ -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