spiegel_podman/pkg
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
..
adapter Add support for anonymous volumes to podman run -v 2019-10-17 13:18:17 -04:00
annotations Add ContainerManager annotation to created containers 2019-09-10 09:37:14 +02:00
apparmor golangci-lint round #3 2019-07-21 14:22:39 -05:00
cgroups rootless: automatically create a systemd scope 2019-09-12 08:35:26 +02:00
channelwriter account for varlink calls that dont use more 2019-07-10 08:50:05 -05:00
criu Add helper function to read out CRIU version 2018-10-23 12:52:03 +02:00
ctime Re-add int64 casts for ctime 2019-07-23 15:43:40 -04:00
errorhandling first pass of corrections for golangci-lint 2019-07-10 15:52:17 -05:00
hooks Fix sample's JSON syntax error in oci-hooks.5.md 2019-10-14 21:19:08 +09:00
inspect Begin to break up pkg/inspect 2019-06-03 15:54:53 -04:00
kubeutils Remove dependency on kubernetes 2018-03-27 21:55:33 +00:00
logs first pass of corrections for golangci-lint 2019-07-10 15:52:17 -05:00
lookup execuser: look at the source for /etc/{passwd,group} overrides 2019-09-21 22:11:09 +02:00
namespaces namespaces: fix Container() call 2019-08-07 13:11:08 -04:00
netns network: hide EPERM warning when rootless 2019-10-01 08:51:58 +02:00
network enhance podman network rm 2019-09-12 14:03:52 -05:00
registrar Update registrar unit tests to match them of cri-o 2019-04-04 08:53:32 +02:00
registries Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
resolvconf Use host's resolv.conf if no network namespace enabled 2018-11-27 15:28:09 -05:00
rootless rootless: drop dependency on docker 2019-10-16 22:22:52 +02:00
spec Add support for anonymous volumes to podman run -v 2019-10-17 13:18:17 -04:00
sysinfo Setup a reasonable default for pids-limit 4096 2019-10-04 16:09:13 -04:00
systemdgen generate systemd: support pods and geneartig files 2019-08-21 17:28:30 +02:00
tracing trivial cleanups from golang 2019-07-03 15:41:33 -05:00
trust Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
util Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
varlinkapi Move OCI runtime implementation behind an interface 2019-10-10 10:19:32 -04:00