summaryrefslogtreecommitdiff
path: root/docs/source/markdown/podman-volume-create.1.md
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2022-06-25 18:59:53 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2022-06-27 20:22:20 +0200
commitaada13f244d52dad9b6a1cfaa725e9d36d75a858 (patch)
tree5342476dc54a2bf9ce64096c124249c6e631a8f6 /docs/source/markdown/podman-volume-create.1.md
parenta4094530bc8b0d5fdbd8ad4ce9a136fe15ee7cee (diff)
downloadpodman-aada13f244d52dad9b6a1cfaa725e9d36d75a858.tar.gz
podman-aada13f244d52dad9b6a1cfaa725e9d36d75a858.tar.bz2
podman-aada13f244d52dad9b6a1cfaa725e9d36d75a858.zip
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>
Diffstat (limited to 'docs/source/markdown/podman-volume-create.1.md')
-rw-r--r--docs/source/markdown/podman-volume-create.1.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/source/markdown/podman-volume-create.1.md b/docs/source/markdown/podman-volume-create.1.md
index 31e109791..32b10da84 100644
--- a/docs/source/markdown/podman-volume-create.1.md
+++ b/docs/source/markdown/podman-volume-create.1.md
@@ -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: