Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 9f39555

Browse files
committed
container: fix the issue of wrong RuntimeName
Signed-off-by: fupan <lifupan@gmail.com>
1 parent d3ca391 commit 9f39555

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

daemon/pod/container.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ func (c *Container) SpecName() string {
126126
}
127127

128128
func (c *Container) RuntimeName() string {
129+
if c.SpecName()[0] != '/' {
130+
return "/" + c.SpecName()
131+
}
129132
return c.SpecName()
130133
}
131134

0 commit comments

Comments
 (0)