mirror of
https://github.com/containers/podman.git
synced 2025-08-06 03:19:52 +08:00
volume: new options [no]copy
add two new options to the volume create command: copy and nocopy. When nocopy is specified, the files from the container image are not copied up to the volume. Closes: https://github.com/containers/podman/issues/14722 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@ -73,7 +73,7 @@ func (r *Runtime) newVolume(options ...VolumeCreateOption) (_ *Volume, deferredE
|
||||
return nil, errors.Wrapf(err, "invalid volume option %s for driver 'local'", key)
|
||||
}
|
||||
}
|
||||
case "o", "type", "uid", "gid", "size", "inodes", "noquota":
|
||||
case "o", "type", "uid", "gid", "size", "inodes", "noquota", "copy", "nocopy":
|
||||
// Do nothing, valid keys
|
||||
default:
|
||||
return nil, errors.Wrapf(define.ErrInvalidArg, "invalid mount option %s for driver 'local'", key)
|
||||
|
Reference in New Issue
Block a user