mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-09-01 21:27:53 +00:00
Merge pull request #5031 from baude/apiv2dockercontainerslash
compat container names begin with /
This commit is contained in:
commit
ef965bc28d
1 changed files with 2 additions and 2 deletions
|
|
@ -360,7 +360,7 @@ func LibpodToContainer(l *libpod.Container, infoData []define.InfoData) (*Contai
|
|||
|
||||
return &Container{docker.Container{
|
||||
ID: l.ID(),
|
||||
Names: []string{l.Name()},
|
||||
Names: []string{fmt.Sprintf("/%s", l.Name())},
|
||||
Image: imageName,
|
||||
ImageID: imageId,
|
||||
Command: strings.Join(l.Command(), " "),
|
||||
|
|
@ -431,7 +431,7 @@ func LibpodToContainerJSON(l *libpod.Container) (*docker.ContainerJSON, error) {
|
|||
HostsPath: inspect.HostsPath,
|
||||
LogPath: l.LogPath(),
|
||||
Node: nil,
|
||||
Name: l.Name(),
|
||||
Name: fmt.Sprintf("/%s", l.Name()),
|
||||
RestartCount: 0,
|
||||
Driver: inspect.Driver,
|
||||
Platform: "linux",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue