mirror of
https://github.com/containers/podman.git
synced 2025-06-22 01:48:54 +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:
@ -1295,13 +1295,14 @@ The _options_ is a comma-separated list and can be:
|
||||
|
||||
* **rw**|**ro**
|
||||
* **z**|**Z**
|
||||
* [**r**]**shared**|[**r**]**slave**|[**r**]**private**[**r**]**unbindable**
|
||||
* [**r**]**bind**
|
||||
* [**no**]**exec**
|
||||
* [**no**]**dev**
|
||||
* [**no**]**suid**
|
||||
* [**O**]
|
||||
* [**U**]
|
||||
* [**no**]**copy**
|
||||
* [**no**]**dev**
|
||||
* [**no**]**exec**
|
||||
* [**no**]**suid**
|
||||
* [**r**]**bind**
|
||||
* [**r**]**shared**|[**r**]**slave**|[**r**]**private**[**r**]**unbindable**
|
||||
|
||||
The `CONTAINER-DIR` must be an absolute path such as `/src/docs`. The volume
|
||||
will be mounted into the container at this directory.
|
||||
|
@ -1362,13 +1362,14 @@ The _options_ is a comma-separated list and can be: <sup>[[1]](#Footnote1)</sup>
|
||||
|
||||
* **rw**|**ro**
|
||||
* **z**|**Z**
|
||||
* [**r**]**shared**|[**r**]**slave**|[**r**]**private**[**r**]**unbindable**
|
||||
* [**r**]**bind**
|
||||
* [**no**]**exec**
|
||||
* [**no**]**dev**
|
||||
* [**no**]**suid**
|
||||
* [**O**]
|
||||
* [**U**]
|
||||
* [**no**]**copy**
|
||||
* [**no**]**dev**
|
||||
* [**no**]**exec**
|
||||
* [**no**]**suid**
|
||||
* [**r**]**bind**
|
||||
* [**r**]**shared**|[**r**]**slave**|[**r**]**private**[**r**]**unbindable**
|
||||
|
||||
The `CONTAINER-DIR` must be an absolute path such as `/src/docs`. The volume
|
||||
will be mounted into the container at this directory.
|
||||
|
@ -31,9 +31,10 @@ Set metadata for a volume (e.g., --label mykey=value).
|
||||
|
||||
Set driver specific options.
|
||||
For the default driver, **local**, this allows a volume to be configured to mount a filesystem on the host.
|
||||
For the `local` driver the following options are supported: `type`, `device`, and `o`.
|
||||
For the `local` driver the following options are supported: `type`, `device`, `o`, and `[no]copy`.
|
||||
The `type` option sets the type of the filesystem to be mounted, and is equivalent to the `-t` flag to **mount(8)**.
|
||||
The `device` option sets the device to be mounted, and is equivalent to the `device` argument to **mount(8)**.
|
||||
The `copy` option enables copying files from the container image path where the mount is created to the newly created volume on the first run. `copy` is the default.
|
||||
|
||||
The `o` option sets options for the mount, and is equivalent to the `-o` flag to **mount(8)** with these exceptions:
|
||||
|
||||
|
Reference in New Issue
Block a user