diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2021-05-05 15:44:29 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2021-05-05 17:58:39 +0200 |
commit | 68fe1950fe5bad7e29b7a75bb1e94a54fd7e5360 (patch) | |
tree | 8d8967ca6df08ce77e8aef98f391327fd23aec3c /cmd/podman/common | |
parent | 4d2ba323f2e67fbfd6150582196c6e0229c70a8e (diff) | |
download | podman-68fe1950fe5bad7e29b7a75bb1e94a54fd7e5360.tar.gz podman-68fe1950fe5bad7e29b7a75bb1e94a54fd7e5360.tar.bz2 podman-68fe1950fe5bad7e29b7a75bb1e94a54fd7e5360.zip |
podman: set volatile storage flag for --rm containers
volatile containers are a storage optimization that disables *sync()
syscalls for the container rootfs.
If a container is created with --rm, then automatically set the
volatile storage flag as anyway the container won't persist after a
reboot or machine crash.
[NO TESTS NEEDED]
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'cmd/podman/common')
-rw-r--r-- | cmd/podman/common/specgen.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/podman/common/specgen.go b/cmd/podman/common/specgen.go index f889a0169..d0b012090 100644 --- a/cmd/podman/common/specgen.go +++ b/cmd/podman/common/specgen.go @@ -646,6 +646,7 @@ func FillOutSpecGen(s *specgen.SpecGenerator, c *ContainerCLIOpts, args []string s.Umask = c.Umask s.Secrets = c.Secrets s.PidFile = c.PidFile + s.Volatile = c.Rm return nil } |