mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02:00
Fix canonical container name
Signed-off-by: jhrotko <joana.hrotko@docker.com>
This commit is contained in:
parent
ac8ea082a1
commit
0582001810
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user