diff --git a/providers/os/connection/docker_container.go b/providers/os/connection/docker_container.go index bd5f5d5eb3..4326f32648 100644 --- a/providers/os/connection/docker_container.go +++ b/providers/os/connection/docker_container.go @@ -255,6 +255,7 @@ func NewDockerEngineContainer(id uint32, conf *inventory.Config, asset *inventor conn.PlatformIdentifier = containerid.MondooContainerID(ci.ID) conn.Metadata.Name = containerid.ShortContainerImageID(ci.ID) conn.Metadata.Labels = ci.Labels + conn.Asset().Name = ci.Name return conn, nil } else { log.Debug().Msg("found stopped container " + ci.ID) @@ -267,6 +268,7 @@ func NewDockerEngineContainer(id uint32, conf *inventory.Config, asset *inventor conn.PlatformIdentifier = containerid.MondooContainerID(ci.ID) conn.Metadata.Name = containerid.ShortContainerImageID(ci.ID) conn.Metadata.Labels = ci.Labels + conn.Asset().Name = ci.Name return conn, nil } }