mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
![]() When the daemon is started, it looks at all the volumes and checks to see if any of them have mount options persisted to disk, and loads them from disk if it does. In some cases a volume will be created with an empty map causing the options file to be persisted and volume options set to a non-nil value on daemon restart... this causes problems later when the driver checks for a non-nil value to determine if it should try and mount with the persisted volume options. Ensures 2 things: 1. Instead of only checking nilness for the opts map, use `len` to make sure it is not an empty map, which we don't really need to persit. 2. An empty (or nulled) opts.json will not inadvertnatly set volume options on daemon restart. Signed-off-by: Brian Goff <cpuguy83@gmail.com> |
||
---|---|---|
.. | ||
drivers | ||
local | ||
store | ||
testutils | ||
volume.go | ||
volume_copy.go | ||
volume_propagation_linux.go | ||
volume_propagation_linux_test.go | ||
volume_propagation_unsupported.go | ||
volume_test.go | ||
volume_unix.go | ||
volume_windows.go |