mirror of
https://github.com/containers/podman.git
synced 2025-06-24 03:08:13 +08:00
Merge pull request #14734 from giuseppe/copyup-switch-order
volume: add two new options copy and nocopy
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