spiegel_podman/pkg/spec
Matthew Heon 57e38e9550 When superceding mounts, check for opposite types
When we supercede low-priority mounts and volumes (image volumes,
and volumes sourced from --volumes-from) with higher-priority
ones (the --volume and --mount flags), we always replaced
lower-priority mounts of the same type (e.g. a user mount to
/tmp/test1 would supercede a volumes-from mount to the same
destination). However, we did not supercede the opposite type - a
named volume from image volumes at /tmp/test1 would be allowed to
remain and create a conflict, preventing container creation.

Solve this by destroying opposite types before merging (we can't
do it in the same loop, as then named volumes, which go second,
might trample changes made by mounts).

Fixes #3174

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-05-21 10:21:21 -04:00
..
config_linux.go enable podman-remote on windows 2019-04-30 15:28:39 -05:00
config_unsupported.go Add darwin support for remote-client 2019-01-11 11:30:28 -06:00
containerconfig.go Migrate unit tests from cmd/podman into pkg/spec 2019-05-01 10:19:05 -04:00
createconfig.go Add support for retry count with --restart flag 2019-05-03 10:36:16 -04:00
parse.go Invalid index for array 2018-12-21 09:25:25 -05:00
ports.go Spell check strings and comments 2018-05-25 08:45:15 +00:00
spec.go rootless: force resources to be nil on cgroup v1 2019-05-20 21:45:05 +02:00
spec_test.go Migrate unit tests from cmd/podman into pkg/spec 2019-05-01 10:19:05 -04:00
storage.go When superceding mounts, check for opposite types 2019-05-21 10:21:21 -04:00
storage_test.go Use EqualValues instead of reflect equality 2019-05-01 10:19:05 -04:00