Use namespace label on stack volumes.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
(cherry picked from commit 4013a7c6d8)
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
This commit is contained in:
Daniel Nephin 2016-11-28 18:02:39 -05:00 committed by Victor Vieux
parent 97b0fd9fe3
commit a8c2248e6f

View file

@ -347,7 +347,7 @@ func convertVolumeToMount(
source = stackVolume.External.Name
} else {
volumeOptions = &mount.VolumeOptions{
Labels: stackVolume.Labels,
Labels: getStackLabels(namespace.name, stackVolume.Labels),
NoCopy: isNoCopy(mode),
}