1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-16 15:10:12 +00:00

Merge pull request #268 from galal-hussein/atomic_centos

Add z option to volume binds
This commit is contained in:
Alena Prokharchyk
2018-02-06 16:22:05 -08:00
committed by GitHub
14 changed files with 40 additions and 21 deletions

View File

@@ -220,7 +220,7 @@ func buildCleanerConfig(host *Host, toCleanDirs []string, cleanerImage string) (
}
bindMounts := []string{}
for _, vol := range toCleanDirs {
bindMounts = append(bindMounts, fmt.Sprintf("%s:%s", vol, vol))
bindMounts = append(bindMounts, fmt.Sprintf("%s:%s:z", vol, vol))
}
hostCfg := &container.HostConfig{
Binds: bindMounts,