diff options
Diffstat (limited to 'pkg/api')
-rw-r--r-- | pkg/api/Makefile | 1 | ||||
-rw-r--r-- | pkg/api/handlers/types.go | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/pkg/api/Makefile b/pkg/api/Makefile index f564b6516..c68e50011 100644 --- a/pkg/api/Makefile +++ b/pkg/api/Makefile @@ -10,4 +10,3 @@ ${SWAGGER_OUT}: # generate doesn't remove file on error rm -f ${SWAGGER_OUT} swagger generate spec -o ${SWAGGER_OUT} -i tags.yaml -w ./ - diff --git a/pkg/api/handlers/types.go b/pkg/api/handlers/types.go index 33cf1e95d..9c8562744 100644 --- a/pkg/api/handlers/types.go +++ b/pkg/api/handlers/types.go @@ -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", |