diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-05-05 14:28:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-05 14:28:10 -0400 |
commit | dbc4a5d85bb948a41af710804d61cdba8aac8e0b (patch) | |
tree | b468b9cf7ce10a5e1be756656513274f4eda228d /libpod/container_internal.go | |
parent | 7b50af42c30e6a0d80a20a4e55f6cc7d2c0110d5 (diff) | |
parent | 68fe1950fe5bad7e29b7a75bb1e94a54fd7e5360 (diff) | |
download | podman-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 'libpod/container_internal.go')
-rw-r--r-- | libpod/container_internal.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/container_internal.go b/libpod/container_internal.go index 132012404..051fe4b9e 100644 --- a/libpod/container_internal.go +++ b/libpod/container_internal.go @@ -451,6 +451,8 @@ func (c *Container) setupStorage(ctx context.Context) error { options.MountOpts = newOptions } + options.Volatile = c.config.Volatile + c.setupStorageMapping(&options.IDMappingOptions, &c.config.IDMappings) containerInfo, err := c.runtime.storageService.CreateContainerStorage(ctx, c.runtime.imageContext, c.config.RootfsImageName, c.config.RootfsImageID, c.config.Name, c.config.ID, options) |