spiegel_podman/test/e2e
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
..
hooks Add hooks support to podman 2018-04-05 14:13:49 +00:00
attach_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
checkpoint_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
commit_test.go Merge pull request #3081 from baude/remotecommit 2019-06-03 20:58:13 +02:00
common_test.go Merge pull request #4118 from cevich/fix_sig_proxy 2019-09-27 23:21:25 -07:00
config.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
config_amd64.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
config_ppc64le.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
container_inspect_test.go Add ContainerManager annotation to created containers 2019-09-10 09:37:14 +02:00
cp_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
create_staticip_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
create_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
diff_test.go Add --latest, -l to 'podman diff' 2019-06-21 13:37:04 +02:00
e2e.coverprofile Enable rootless integration tests 2019-03-19 15:01:48 +01:00
events_test.go podman events format json 2019-08-02 11:47:43 -04:00
exec_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
exists_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
export_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
generate_kube_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
generate_systemd_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
healthcheck_run_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
history_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
images_test.go images: empty list is valid json with --format=json 2019-10-11 21:56:40 +02:00
import_test.go new testcase for podman import --change added 2019-09-27 17:17:12 +09:00
info_test.go split remote tests from distro tests 2019-05-13 12:17:55 -05:00
init_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
inspect_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
kill_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
libpod_suite_remoteclient_test.go Move noCache logic lower in stack 2019-09-26 10:56:24 -04:00
libpod_suite_test.go Move noCache logic lower in stack 2019-09-26 10:56:24 -04:00
load_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
login_logout_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
logs_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
mount_test.go add list mount tests 2019-09-24 11:01:28 +02:00
namespace_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
negative_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
network_create_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
network_test.go inclusion of podman network 2019-08-15 12:49:12 -05:00
pause_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
play_kube_test.go play kube: fix segfault 2019-09-06 08:41:04 -04:00
pod_create_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
pod_infra_container_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
pod_inspect_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
pod_kill_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
pod_pause_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
pod_pod_namespaces.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
pod_prune_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
pod_ps_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
pod_restart_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
pod_rm_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
pod_start_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
pod_stats_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
pod_stop_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
pod_top_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
port_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
prune_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
ps_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
pull_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
push_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
restart_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
rm_test.go Add new exit codes to rm & rmi for running containers & dependencies 2019-08-01 03:40:29 -04:00
rmi_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
run_cgroup_parent_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
run_cleanup_test.go fix unit test to use Expect 2019-09-12 21:01:43 +00:00
run_cpu_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
run_device_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
run_dns_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
run_entrypoint_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
run_exit_test.go Fix exit code failure 2019-09-17 12:01:02 -04:00
run_memory_test.go tests: enable memory tests for cgroups v2 2019-08-13 21:43:37 +02:00
run_networking_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
run_ns_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
run_passwd_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
run_privileged_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
run_restart_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
run_selinux_test.go Podman-remote run should wait for exit code 2019-09-12 16:20:01 -04:00
run_signal_test.go speed up rootless tests 2019-07-08 12:31:31 -05:00
run_staticip_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
run_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
run_userns_test.go podman: support --userns=ns|container 2019-07-25 23:04:55 +02:00
run_volume_test.go Add support for anonymous volumes to podman run -v 2019-10-17 13:18:17 -04:00
runlabel_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
save_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
search_test.go fix search output limit 2019-08-01 16:15:15 -04:00
start_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
stats_test.go first pass of corrections for golangci-lint 2019-07-10 15:52:17 -05:00
stop_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
system_df_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
systemd_test.go systemd: expect full path /usr/sbin/init 2019-10-09 23:38:45 +02:00
tag_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
top_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
tree_test.go speed up rootless tests 2019-07-08 12:31:31 -05:00
trust_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
unshare_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
version_test.go fix podman -v regression 2019-07-29 14:47:21 +02:00
volume_create_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
volume_inspect_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
volume_ls_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
volume_prune_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
volume_rm_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
wait_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00