summaryrefslogtreecommitdiff
path: root/docs/kpod-run.1.md
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2017-12-11 14:00:46 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2017-12-12 14:24:13 +0000
commit88121e0747c03084c233d22fadfd3c227e73a885 (patch)
tree88d7c00212dd97775dd2ae9d791fc9fc62e28402 /docs/kpod-run.1.md
parent7f5aa42de01d9154440cd7f0929ec1eff83bd2d2 (diff)
downloadpodman-88121e0747c03084c233d22fadfd3c227e73a885.tar.gz
podman-88121e0747c03084c233d22fadfd3c227e73a885.tar.bz2
podman-88121e0747c03084c233d22fadfd3c227e73a885.zip
We don't support VolumesFrom or links
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #118 Approved by: mheon
Diffstat (limited to 'docs/kpod-run.1.md')
-rw-r--r--docs/kpod-run.1.md45
1 files changed, 3 insertions, 42 deletions
diff --git a/docs/kpod-run.1.md b/docs/kpod-run.1.md
index 269be25ab..478afe408 100644
--- a/docs/kpod-run.1.md
+++ b/docs/kpod-run.1.md
@@ -313,9 +313,8 @@ unit, `b` is used. Set LIMIT to `-1` to enable unlimited swap.
kpod generates a UUID for each container, and if a name is not assigned
to the container with **--name** then the daemon will also generate a random
-string name. The name is useful when defining links (see **--link**) (or any
-other place you need to identify a container). This works for both background
-and foreground containers.
+string name. The name is useful any place you need to identify a container.
+This works for both background and foreground containers.
**--network**="*bridge*"
Set the Network mode for the container
@@ -503,8 +502,7 @@ must be an absolute path as well. kpod bind-mounts the `HOST-DIR` to the
path you specify. For example, if you supply the `/foo` value, kpod creates a bind-mount.
You can specify multiple **-v** options to mount one or more mounts to a
-container. To use these same mounts in other containers, specify the
-**--volumes-from** option also.
+container.
You can add `:ro` or `:rw` suffix to a volume to mount it read-only or
read-write mode, respectively. By default, the volumes are mounted read-write.
@@ -557,24 +555,6 @@ change propagation properties of source mount. Say `/` is source mount for
To disable automatic copying of data from the container path to the volume, use
the `nocopy` flag. The `nocopy` flag can be set on bind mounts and named volumes.
-**--volumes-from**=[]
- Mount volumes from the specified container(s)
-
- Mounts already mounted volumes from a source container onto another
- container. You must supply the source's container-id. To share
- a volume, use the **--volumes-from** option when running
- the target container. You can share volumes even if the source container
- is not running.
-
- By default, kpod mounts the volumes in the same mode (read-write or
- read-only) as it is mounted in the source container. Optionally, you
- can change this by suffixing the container-id with either the `:ro` or
- `:rw ` keyword.
-
- If the location of the volume from the source container overlaps with
- data residing on a target container, then the volume hides
- that data on the target.
-
**-w**, **--workdir**=""
Working directory inside the container
@@ -729,25 +709,6 @@ following:
# kpod run -p 8080:80 -d -i -t fedora/httpd
-## Creating and Mounting a Data Volume Container
-
-Many applications require the sharing of persistent data across several
-containers. kpod allows you to create a Data Volume Container that other
-containers can mount from. For example, create a named container that contains
-directories /var/volume1 and /tmp/volume2. The image will need to contain these
-directories so a couple of RUN mkdir instructions might be required for you
-fedora-data image:
-
- # kpod run --name=data -v /var/volume1 -v /tmp/volume2 -i -t fedora-data true
- # kpod run --volumes-from=data --name=fedora-container1 -i -t fedora bash
-
-Multiple --volumes-from parameters will bring together multiple data volumes from
-multiple containers. And it's possible to mount the volumes that came from the
-DATA container in yet another container via the fedora-container1 intermediary
-container, allowing to abstract the actual data source from users of that data:
-
- # kpod run --volumes-from=fedora-container1 --name=fedora-container2 -i -t fedora bash
-
## Mounting External Volumes
To mount a host directory as a container volume, specify the absolute path to