mirror of
https://github.com/containers/podman.git
synced 2025-08-05 19:02:37 +08:00
Add ability for volumes with options to mount/umount
When volume options and the local volume driver are specified, the volume is intended to be mounted using the 'mount' command. Supported options will be used to volume the volume before the first container using it starts, and unmount the volume after the last container using it dies. This should work for any local filesystem, though at present I've only tested with tmpfs and btrfs. Signed-off-by: Matthew Heon <matthew.heon@pm.me>
This commit is contained in:
@ -185,7 +185,7 @@ func (r *LocalRuntime) CreateVolume(ctx context.Context, c *cliconfig.VolumeCrea
|
||||
options = append(options, libpod.WithVolumeLabels(labels))
|
||||
}
|
||||
|
||||
if len(options) != 0 {
|
||||
if len(opts) != 0 {
|
||||
options = append(options, libpod.WithVolumeOptions(opts))
|
||||
}
|
||||
newVolume, err := r.NewVolume(ctx, options...)
|
||||
|
Reference in New Issue
Block a user