Fix docker ps truncate long image name by default
Signed-off-by: Lei Jitang <leijitang@huawei.com> Upstream-commit: 3fcf481361400acd5e56da2a8c76cf888092b2e4 Component: engine
This commit is contained in:
@@ -288,8 +288,9 @@ func includeContainerInList(container *Container, ctx *listContext) iterationAct
|
||||
// transformContainer generates the container type expected by the docker ps command.
|
||||
func (daemon *Daemon) transformContainer(container *Container, ctx *listContext) (*types.Container, error) {
|
||||
newC := &types.Container{
|
||||
ID: container.ID,
|
||||
Names: ctx.names[container.ID],
|
||||
ID: container.ID,
|
||||
Names: ctx.names[container.ID],
|
||||
ImageID: container.ImageID,
|
||||
}
|
||||
|
||||
img, err := daemon.Repositories().LookupImage(container.Config.Image)
|
||||
|
||||
Reference in New Issue
Block a user