From 8f458570c741aff70cca853876fe24b3846076b9 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Mon, 17 May 2021 09:29:21 +0200 Subject: [PATCH] named pipe need to be mounted using the bind API Signed-off-by: Nicolas De Loof --- local/compose/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local/compose/create.go b/local/compose/create.go index d06bf5f6..acf6b556 100644 --- a/local/compose/create.go +++ b/local/compose/create.go @@ -604,7 +604,7 @@ MOUNTS: for _, m := range mountOptions { volumeMounts[m.Target] = struct{}{} // `Bind` API is used when host path need to be created if missing, `Mount` is preferred otherwise - if m.Type == mount.TypeBind { + if m.Type == mount.TypeBind || m.Type == mount.TypeNamedPipe { for _, v := range service.Volumes { if v.Target == m.Target && v.Bind != nil && v.Bind.CreateHostPath { mode := "rw"