moby--moby/volume
Brian Goff 4d8598ad05 Create labels when volume exists only remotely
Before this, if a volume exists in a driver but not in the local cache,
the store would just return a bare volume. This means that if a user
supplied options or labels, they will not get stored.

Instead only return early if we have the volume stored locally. Note
this could still have an issue with labels/opts passed in by the user
differing from what is stored, however this isn't really a new problem.

This fixes a problem where if there is a shared storage backend between
two docker nodes, a create on one node will have labels stored and a
create on the other node will not.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2017-11-09 15:14:06 -05:00
..
drivers Fixup some issues with plugin refcounting 2017-10-21 15:17:57 -04:00
local Remove solaris build tag and `contrib/mkimage/solaris 2017-11-02 00:01:46 +00:00
store Create labels when volume exists only remotely 2017-11-09 15:14:06 -05:00
testutils Spelling fixes 2017-07-03 13:13:09 -07:00
lcow_parser.go Volume refactoring for LCOW 2017-09-14 12:33:31 -07:00
linux_parser.go Typo fixed and simple code. 2017-10-18 10:26:58 +08:00
parser.go Volume refactoring for LCOW 2017-09-14 12:33:31 -07:00
validate.go Volume refactoring for LCOW 2017-09-14 12:33:31 -07:00
validate_test.go Volume refactoring for LCOW 2017-09-14 12:33:31 -07:00
validate_unix_test.go Add deadcode linter 2017-08-21 18:18:50 -04:00
validate_windows_test.go Add deadcode linter 2017-08-21 18:18:50 -04:00
volume.go volume: evaluate symlinks before relabeling mount source 2017-09-19 10:54:03 +02:00
volume_copy.go Volume refactoring for LCOW 2017-09-14 12:33:31 -07:00
volume_test.go Volume refactoring for LCOW 2017-09-14 12:33:31 -07:00
volume_unix.go Remove solaris build tag and `contrib/mkimage/solaris 2017-11-02 00:01:46 +00:00
volume_windows.go Volume refactoring for LCOW 2017-09-14 12:33:31 -07:00
windows_parser.go Volume refactoring for LCOW 2017-09-14 12:33:31 -07:00