1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/integration/internal/container
Brian Goff 1d8da80dbf Check tmpfs mounts before create anon volume
This makes sure that things like `--tmpfs` mounts over an anonymous
volume don't create volumes uneccessarily.
One method only checks mountpoints, the other checks both mountpoints
and tmpfs... the usage of these should likely be consolidated.

Ideally, processing for `--tmpfs` mounts would get merged in with the
rest of the mount parsing. I opted not to do that for this change so the
fix is minimal and can potentially be backported with fewer changes of
breaking things.
Merging the mount processing for tmpfs can be handled in a followup.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
(cherry picked from commit f464c31668)
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2020-02-07 14:11:17 -08:00
..
container.go integration: change container.Run signature to fix linting 2019-09-23 18:20:50 +02:00
exec.go Switch from x/net/context -> context 2018-04-23 13:52:44 -07:00
ops.go Check tmpfs mounts before create anon volume 2020-02-07 14:11:17 -08:00
states.go mount: add BindOptions.NonRecursive (API v1.40) 2018-11-06 17:51:58 +09:00