mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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:
parent
97b0fd9fe3
commit
a8c2248e6f
1 changed files with 1 additions and 1 deletions
|
@ -347,7 +347,7 @@ func convertVolumeToMount(
|
||||||
source = stackVolume.External.Name
|
source = stackVolume.External.Name
|
||||||
} else {
|
} else {
|
||||||
volumeOptions = &mount.VolumeOptions{
|
volumeOptions = &mount.VolumeOptions{
|
||||||
Labels: stackVolume.Labels,
|
Labels: getStackLabels(namespace.name, stackVolume.Labels),
|
||||||
NoCopy: isNoCopy(mode),
|
NoCopy: isNoCopy(mode),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue