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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user