瀏覽代碼

Merge pull request #1676 from ndeloof/bind_npipe

named pipe need to be mounted using the bind API
Nicolas De loof 4 年之前
父節點
當前提交
8f2e572edd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      local/compose/create.go

+ 1 - 1
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"