From 3d395767d8c3e467e784e3836c7175f6d11931a7 Mon Sep 17 00:00:00 2001 From: umohnani8 Date: Fri, 16 Feb 2018 10:38:12 -0500 Subject: Implement --image-volumes for create and run --image-volumes tells podman what to do with the image volumes in the image config There are 3 options: bind, tmpfs, and ignore bind puts the volume contents in /var/lib/containers/storage/container-id/volumes/vol-dir and bind mounts it into the container at /vol-dir tmpfs mounts /vol-dir as a tmps into the container ignore doesn't mount the image volumes onto the container Signed-off-by: umohnani8 Closes: #377 Approved by: rhatdan --- docs/podman-create.1.md | 8 ++++++++ docs/podman-run.1.md | 8 ++++++++ 2 files changed, 16 insertions(+) (limited to 'docs') diff --git a/docs/podman-create.1.md b/docs/podman-create.1.md index 7d2b62fb0..98141221b 100644 --- a/docs/podman-create.1.md +++ b/docs/podman-create.1.md @@ -217,6 +217,14 @@ inside of the container. **--help** Print usage statement +**--image-volume**, **builtin-volume**=*bind*|*tmpfs*|*ignore* + Tells podman how to handle the builtin image volumes. The options are: 'bind', 'tmpfs', or 'ignore' (default 'bind'). + bind: A directory is created inside the container state directory and bind mounted into + the container for the volumes. + tmpfs: The volume is mounted onto the container as a tmpfs, which allows the users to create + content that dissapears when the container is stopped. + ignore: All volumes are just ignored and no action is taken. + **-i**, **--interactive**=*true*|*false* Keep STDIN open even if not attached. The default is *false*. diff --git a/docs/podman-run.1.md b/docs/podman-run.1.md index 53239422d..5e235514c 100644 --- a/docs/podman-run.1.md +++ b/docs/podman-run.1.md @@ -214,6 +214,14 @@ inside of the container. **--help** Print usage statement +**--image-volume**, **builtin-volume**=*bind*|*tmpfs*|*ignore* + Tells podman how to handle the builtin image volumes. The options are: 'bind', 'tmpfs', or 'ignore' (default 'bind') + bind: A directory is created inside the container state directory and bind mounted into + the container for the volumes. + tmpfs: The volume is mounted onto the container as a tmpfs, which allows the users to create + content that dissapears when the container is stopped. + ignore: All volumes are just ignored and no action is taken. + **-i**, **--interactive**=*true*|*false* Keep STDIN open even if not attached. The default is *false*. -- cgit v1.2.3-54-g00ecf