Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 8f45857

Browse files
committed
named pipe need to be mounted using the bind API
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 0a02f7d commit 8f45857

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

local/compose/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ MOUNTS:
604604
for _, m := range mountOptions {
605605
volumeMounts[m.Target] = struct{}{}
606606
// `Bind` API is used when host path need to be created if missing, `Mount` is preferred otherwise
607-
if m.Type == mount.TypeBind {
607+
if m.Type == mount.TypeBind || m.Type == mount.TypeNamedPipe {
608608
for _, v := range service.Volumes {
609609
if v.Target == m.Target && v.Bind != nil && v.Bind.CreateHostPath {
610610
mode := "rw"

0 commit comments

Comments
 (0)