Skip to content

[BUG] Image_id tag is incorrect with docker integration #38142

@AlenversFr

Description

@AlenversFr

Agent Environment
Agent version : 7.56.2
hosts are activated with Docker and containerd integration.
host are running with Ubuntu and docker engine v25.0.5

Describe what happened:

It's impossible to get a correct sha256 value of container images with the tag image_id when using docker.container.running and all metrics of docker integration.
It is also not working with container.* metrics

The problem occurs with VM running Ubuntu and docker engine.

Describe what you expected:
I need to collect the correct sha256 inside of the tag image_id for images running on Docker Engine which should be the reflect of REPO DIGEST.
This should be available at least for metrics docker.*

Steps to reproduce the issue:
When I look at the values inside of image_id for containers running with docker engine, the sha256 indicated is incorrect and doesn't exists in our registries.

Here is the result of 2 queries :

Image

When I look at the view Infrastructure/container images with the same image_name as filter :

Image
The REPO DIGEST indicates the correct value.

Checking in our internal registry, I get the same value REPO DIGEST and not image_id tag :

Image

When I look at the exact same use case with images running on Kubernetes and by using this metric kubernetes.containers.running : the image_id is correct and indicates the correct sha256

Additional environment details (Operating System, Cloud provider, etc):

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions