소스 검색

Fix canonical container name

Signed-off-by: jhrotko <[email protected]>
jhrotko 1 년 전
부모
커밋
0582001810
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      pkg/compose/compose.go

+ 2 - 1
pkg/compose/compose.go

@@ -132,7 +132,8 @@ func getCanonicalContainerName(c moby.Container) string {
 			return name[1:]
 		}
 	}
-	return c.Names[0][1:]
+
+	return strings.TrimPrefix(c.Names[0], "/")
 }
 
 func getContainerNameWithoutProject(c moby.Container) string {