spiegel_podman/docs
Matthew Heon 0d623914d0 Add support for anonymous volumes to podman run -v
Previously, when `podman run` encountered a volume mount without
separate source and destination (e.g. `-v /run`) we would assume
that both were the same - a bind mount of `/run` on the host to
`/run` in the container. However, this does not match Docker's
behavior - in Docker, this makes an anonymous named volume that
will be mounted at `/run`.

We already have (more limited) support for these anonymous
volumes in the form of image volumes. Extend this support to
allow it to be used with user-created volumes coming in from the
`-v` flag.

This change also affects how named volumes created by the
container but given names are treated by `podman run --rm` and
`podman rm -v`. Previously, they would be removed with the
container in these cases, but this did not match Docker's
behaviour. Docker only removed anonymous volumes. With this patch
we move to that model as well; `podman run -v testvol:/test` will
not have `testvol` survive the container being removed by `podman
rm -v`.

The sum total of these changes let us turn on volume removal in
`--rm` by default.

Fixes: #4276

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-10-17 13:18:17 -04:00
..
links Fix formatting and enable hack/man-page-checker 2019-08-30 12:00:19 -04:00
tutorials Add api link to tutorials 2019-10-02 10:25:42 -04:00
varlink document nullable types 2019-05-22 10:08:03 -05:00
containers-mounts.conf.5.md docs: consistent headings 2018-08-30 16:51:56 +00:00
dckrman.sh Add support for mimicing docker CLI 2018-01-18 07:01:48 -05:00
generate.go Rename varlink socket and interface 2018-08-06 14:49:11 +00:00
libpod.conf.5.md Merge pull request #3551 from mheon/fix_memory_leak 2019-08-02 03:44:43 +02:00
links-to-html.lua Support podman-remote help on windows 2019-09-19 14:14:38 -07:00
play.png Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
podman-attach.1.md Add command aliases to SYNOPSIS section 2019-08-31 16:58:52 -04:00
podman-build.1.md Add squash-all, fix squash option in build 2019-10-11 13:28:38 -04:00
podman-commit.1.md Replace "podman" with "Podman" 2019-09-07 20:16:42 +08:00
podman-container-checkpoint.1.md Add --ignore-rootfs option for checkpoint/restore 2019-07-11 14:43:35 +02:00
podman-container-cleanup.1.md Fix formatting and enable hack/man-page-checker 2019-08-30 12:00:19 -04:00
podman-container-exists.1.md standardize documentation formatting 2019-06-10 11:48:02 -04:00
podman-container-prune.1.md Fix formatting and enable hack/man-page-checker 2019-08-30 12:00:19 -04:00
podman-container-restore.1.md Fix formatting and enable hack/man-page-checker 2019-08-30 12:00:19 -04:00
podman-container-runlabel.1.md Fix formatting and enable hack/man-page-checker 2019-08-30 12:00:19 -04:00
podman-container.1.md Fix formatting and enable hack/man-page-checker 2019-08-30 12:00:19 -04:00
podman-cp.1.md fix cp none exists dest path ends with '/' 2019-09-25 12:48:05 -04:00
podman-create.1.md Add support for anonymous volumes to podman run -v 2019-10-17 13:18:17 -04:00
podman-derivative-api systemd: expect full path /usr/sbin/init 2019-10-09 23:38:45 +02:00
podman-diff.1.md Add command aliases to SYNOPSIS section 2019-08-31 16:58:52 -04:00
podman-events.1.md Document the 'system' event types for 'podman events' 2019-09-23 10:15:15 -04:00
podman-exec.1.md Replace "podman" with "Podman" 2019-09-07 20:16:42 +08:00
podman-export.1.md Add command aliases to SYNOPSIS section 2019-08-31 16:58:52 -04:00
podman-generate-kube.1.md Replace "podman" with "Podman" 2019-09-07 20:16:42 +08:00
podman-generate-systemd.1.md Fix formatting and enable hack/man-page-checker 2019-08-30 12:00:19 -04:00
podman-generate.1.md generate systemd: support pods and geneartig files 2019-08-21 17:28:30 +02:00
podman-healthcheck-run.1.md (minor): fix misspelled 'Healthcheck' 2019-04-10 09:43:56 -06:00
podman-healthcheck.1.md man pages - consistency fixes 2019-03-20 14:37:59 -06:00
podman-history.1.md Add command aliases to SYNOPSIS section 2019-08-31 16:58:52 -04:00
podman-image-exists.1.md standardize documentation formatting 2019-06-10 11:48:02 -04:00
podman-image-prune.1.md Fix formatting and enable hack/man-page-checker 2019-08-30 12:00:19 -04:00
podman-image-sign.1.md Replace "podman" with "Podman" 2019-09-07 20:16:42 +08:00
podman-image-tree.1.md Replace "podman" with "Podman" 2019-09-07 20:16:42 +08:00
podman-image-trust.1.md podman-remote image trust is broken 2019-09-11 16:03:45 -04:00
podman-image.1.md Fix formatting and enable hack/man-page-checker 2019-08-30 12:00:19 -04:00
podman-images.1.md Add command aliases to SYNOPSIS section 2019-08-31 16:58:52 -04:00
podman-import.1.md new examples added 2019-09-27 17:42:11 +09:00
podman-info.1.md Fix formatting and enable hack/man-page-checker 2019-08-30 12:00:19 -04:00
podman-init.1.md Add command aliases to SYNOPSIS section 2019-08-31 16:58:52 -04:00
podman-inspect.1.md standardize documentation formatting 2019-06-10 11:48:02 -04:00
podman-kill.1.md Add command aliases to SYNOPSIS section 2019-08-31 16:58:52 -04:00
podman-load.1.md Add command aliases to SYNOPSIS section 2019-08-31 16:58:52 -04:00
podman-login.1.md Touch up XDG, add rootless links 2019-07-29 11:29:41 -04:00
podman-logout.1.md Touch up XDG, add rootless links 2019-07-29 11:29:41 -04:00
podman-logs.1.md Fix formatting and enable hack/man-page-checker 2019-08-30 12:00:19 -04:00
podman-mount.1.md Add command aliases to SYNOPSIS section 2019-08-31 16:58:52 -04:00
podman-network-create.1.md podman network create 2019-09-09 09:32:43 -05:00
podman-network-inspect.1.md Fix formatting and enable hack/man-page-checker 2019-08-30 12:00:19 -04:00
podman-network-ls.1.md podman network create 2019-09-09 09:32:43 -05:00
podman-network-rm.1.md enhance podman network rm 2019-09-12 14:03:52 -05:00
podman-network.1.md podman network create 2019-09-09 09:32:43 -05:00
podman-pause.1.md Add command aliases to SYNOPSIS section 2019-08-31 16:58:52 -04:00
podman-play-kube.1.md Fix formatting and enable hack/man-page-checker 2019-08-30 12:00:19 -04:00
podman-play.1.md Fix formatting and enable hack/man-page-checker 2019-08-30 12:00:19 -04:00
podman-pod-create.1.md Fix spelling mistakes in man pages and other docs 2019-07-11 17:56:54 -04:00
podman-pod-exists.1.md standardize documentation formatting 2019-06-10 11:48:02 -04:00
podman-pod-inspect.1.md standardize documentation formatting 2019-06-10 11:48:02 -04:00
podman-pod-kill.1.md Fix formatting and enable hack/man-page-checker 2019-08-30 12:00:19 -04:00
podman-pod-pause.1.md standardize documentation formatting 2019-06-10 11:48:02 -04:00
podman-pod-prune.1.md standardize documentation formatting 2019-06-10 11:48:02 -04:00
podman-pod-ps.1.md standardize documentation formatting 2019-06-10 11:48:02 -04:00
podman-pod-restart.1.md standardize documentation formatting 2019-06-10 11:48:02 -04:00
podman-pod-rm.1.md standardize documentation formatting 2019-06-10 11:48:02 -04:00
podman-pod-start.1.md standardize documentation formatting 2019-06-10 11:48:02 -04:00
podman-pod-stats.1.md Fix formatting and enable hack/man-page-checker 2019-08-30 12:00:19 -04:00
podman-pod-stop.1.md standardize documentation formatting 2019-06-10 11:48:02 -04:00
podman-pod-top.1.md standardize documentation formatting 2019-06-10 11:48:02 -04:00
podman-pod-unpause.1.md standardize documentation formatting 2019-06-10 11:48:02 -04:00
podman-pod.1.md Fix table spacing 2019-08-30 13:34:36 -04:00
podman-port.1.md Add command aliases to SYNOPSIS section 2019-08-31 16:58:52 -04:00
podman-ps.1.md Add command aliases to SYNOPSIS section 2019-08-31 16:58:52 -04:00
podman-pull.1.md Add command aliases to SYNOPSIS section 2019-08-31 16:58:52 -04:00
podman-push.1.md Add command aliases to SYNOPSIS section 2019-08-31 16:58:52 -04:00
podman-remote.1.md support non-standard ssh port for remote-client 2019-09-17 13:42:02 -05:00
podman-remote.conf.5.md Allow changing IdentityFile and to IgnoreHosts 2019-10-01 19:46:48 +02:00
podman-remote.sh Support podman-remote help on windows 2019-09-19 14:14:38 -07:00
podman-restart.1.md Add command aliases to SYNOPSIS section 2019-08-31 16:58:52 -04:00
podman-rm.1.md rm: add containers eviction with rm --force 2019-09-25 19:44:38 +02:00
podman-rmi.1.md Fix formatting and enable hack/man-page-checker 2019-08-30 12:00:19 -04:00
podman-run.1.md Add support for anonymous volumes to podman run -v 2019-10-17 13:18:17 -04:00
podman-save.1.md Add command aliases to SYNOPSIS section 2019-08-31 16:58:52 -04:00
podman-search.1.md Merge pull request #3466 from TomSweeneyRedHat/dev/tsweeney/myhome 2019-08-06 17:42:54 +02:00
podman-start.1.md Add command aliases to SYNOPSIS section 2019-08-31 16:58:52 -04:00
podman-stats.1.md rootless v2 cannot collect network stats 2019-10-15 14:09:41 -05:00
podman-stop.1.md Add command aliases to SYNOPSIS section 2019-08-31 16:58:52 -04:00
podman-system-df.1.md Fix spelling mistakes in man pages and other docs 2019-07-11 17:56:54 -04:00
podman-system-migrate.1.md Migrate can move containers to a new runtime 2019-10-10 10:25:06 -04:00
podman-system-prune.1.md standardize documentation formatting 2019-06-10 11:48:02 -04:00
podman-system-renumber.1.md Fix formatting and enable hack/man-page-checker 2019-08-30 12:00:19 -04:00
podman-system.1.md Fix formatting and enable hack/man-page-checker 2019-08-30 12:00:19 -04:00
podman-tag.1.md Add command aliases to SYNOPSIS section 2019-08-31 16:58:52 -04:00
podman-top.1.md Add command aliases to SYNOPSIS section 2019-08-31 16:58:52 -04:00
podman-umount.1.md Add command aliases to SYNOPSIS section 2019-08-31 16:58:52 -04:00
podman-unpause.1.md Add command aliases to SYNOPSIS section 2019-08-31 16:58:52 -04:00
podman-unshare.1.md Fix formatting and enable hack/man-page-checker 2019-08-30 12:00:19 -04:00
podman-varlink.1.md standardize documentation formatting 2019-06-10 11:48:02 -04:00
podman-version.1.md Fix formatting and enable hack/man-page-checker 2019-08-30 12:00:19 -04:00
podman-volume-create.1.md Add ability for volumes with options to mount/umount 2019-09-05 17:12:27 -04:00
podman-volume-inspect.1.md Add function for looking up volumes by partial name 2019-09-09 12:06:10 -04:00
podman-volume-ls.1.md Fix formatting and enable hack/man-page-checker 2019-08-30 12:00:19 -04:00
podman-volume-prune.1.md standardize documentation formatting 2019-06-10 11:48:02 -04:00
podman-volume-rm.1.md Add function for looking up volumes by partial name 2019-09-09 12:06:10 -04:00
podman-volume.1.md Fix formatting and enable hack/man-page-checker 2019-08-30 12:00:19 -04:00
podman-wait.1.md Add command aliases to SYNOPSIS section 2019-08-31 16:58:52 -04:00
podman.1.md Update build man page with latest Buildah changes 2019-10-10 18:04:30 -04:00