diff options
author | Daniel Nephin <dnephin@docker.com> | 2016-06-09 15:00:59 -0700 |
---|---|---|
committer | Tonis Tiigi <tonistiigi@gmail.com> | 2016-06-13 18:24:17 -0700 |
commit | 713cbd8bca260e6595d8790aadaa7b45876ddb83 (patch) | |
tree | 3c25456028a226ee4802692f3a955bafba8dfc6e | |
parent | 1cac395b7fdb03be9ead895e728f17f405731b33 (diff) | |
download | docker-713cbd8bca260e6595d8790aadaa7b45876ddb83.tar.gz |
Fix CLI side of volume problem.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
-rw-r--r-- | api/client/service/opts.go | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/api/client/service/opts.go b/api/client/service/opts.go index 47f3ab8c1f..028e78c385 100644 --- a/api/client/service/opts.go +++ b/api/client/service/opts.go @@ -244,12 +244,10 @@ func ConvertMounts(rawMounts []string) []swarm.Mount { mountPoint, _ := volume.ParseMountSpec(rawMount, "") mounts = append(mounts, swarm.Mount{ - Target: mountPoint.Destination, - Source: mountPoint.Source, - // TODO: fix with new mounts - // Mask: swarm.MountMask(mountPoint.Mode), - // no more VolumeName - Type: swarm.MountType(mountPoint.Type()), + Target: mountPoint.Destination, + Source: mountPoint.Name, + Writable: mountPoint.RW, + Type: swarm.MountType(mountPoint.Type()), }) } return mounts |