1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/volume/store
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
..
db.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
errors.go Volume refactoring for LCOW 2017-09-14 12:33:31 -07:00
restore.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
store.go Create labels when volume exists only remotely 2017-11-09 15:14:06 -05:00
store_test.go Create labels when volume exists only remotely 2017-11-09 15:14:06 -05:00
store_unix.go Remove solaris build tag and `contrib/mkimage/solaris 2017-11-02 00:01:46 +00:00
store_windows.go *: normalize the use of normalize 2017-08-22 15:25:31 -07:00