From cc551e0a3d716b46cfba44bf344dbb66616a1d43 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Wed, 26 Nov 2025 08:26:26 +0100 Subject: [PATCH] include SELinux re-labeling option in bind string Signed-off-by: Nicolas De Loof --- types/types.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/types.go b/types/types.go index fd4f3513..295dd89c 100644 --- a/types/types.go +++ b/types/types.go @@ -537,6 +537,9 @@ func (s ServiceVolumeConfig) String() string { if s.Volume != nil && s.Volume.NoCopy { options = append(options, "nocopy") } + if s.Bind != nil && s.Bind.SELinux != "" { + options = append(options, s.Bind.SELinux) + } return fmt.Sprintf("%s:%s:%s", s.Source, s.Target, strings.Join(options, ",")) }