summaryrefslogtreecommitdiff
path: root/pkg/specgen/generate
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-05-05 14:28:10 -0400
committerGitHub <noreply@github.com>2021-05-05 14:28:10 -0400
commitdbc4a5d85bb948a41af710804d61cdba8aac8e0b (patch)
treeb468b9cf7ce10a5e1be756656513274f4eda228d /pkg/specgen/generate
parent7b50af42c30e6a0d80a20a4e55f6cc7d2c0110d5 (diff)
parent68fe1950fe5bad7e29b7a75bb1e94a54fd7e5360 (diff)
downloadpodman-dbc4a5d85bb948a41af710804d61cdba8aac8e0b.tar.gz
podman-dbc4a5d85bb948a41af710804d61cdba8aac8e0b.tar.bz2
podman-dbc4a5d85bb948a41af710804d61cdba8aac8e0b.zip
Merge pull request #10220 from giuseppe/rm-volatile
podman: set volatile storage flag for --rm containers
Diffstat (limited to 'pkg/specgen/generate')
-rw-r--r--pkg/specgen/generate/container_create.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/specgen/generate/container_create.go b/pkg/specgen/generate/container_create.go
index 01f939022..0090156c9 100644
--- a/pkg/specgen/generate/container_create.go
+++ b/pkg/specgen/generate/container_create.go
@@ -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 {