Skip to content

Commit cc551e0

Browse files
committed
include SELinux re-labeling option in bind string
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
1 parent 3d3411d commit cc551e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

types/types.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,9 @@ func (s ServiceVolumeConfig) String() string {
537537
if s.Volume != nil && s.Volume.NoCopy {
538538
options = append(options, "nocopy")
539539
}
540+
if s.Bind != nil && s.Bind.SELinux != "" {
541+
options = append(options, s.Bind.SELinux)
542+
}
540543
return fmt.Sprintf("%s:%s:%s", s.Source, s.Target, strings.Join(options, ","))
541544
}
542545

0 commit comments

Comments
 (0)