DataDog / datadog-agent

Main repository for Datadog Agent
https://docs.datadoghq.com/
Apache License 2.0
2.81k stars 1.19k forks source link

[BUG] Agent 7.54 cannot get container's image: container not created from an image: not found #26686

Open far-blue opened 3 months ago

far-blue commented 3 months ago

Starting with agent v 7.54 I've found the auto-collection of logs from containers is failing. Within the 'status' command the "docker" section is missing and I'm seeing errors of the form cannot get container's image: container not created from an image: not found in the logs.

Agent Environment Agent 7.54.0 - Commit: e399859 - Serialization version: v5.0.114 - Go version: go1.21.9

Jun 13 10:53:48 gold agent[3154138]: 2024-06-13 10:53:48 BST | CORE | WARN | (comp/core/workloadmeta/collectors/internal/containerd/container_builder.go:51 in buildWorkloadMetaContainer) | cannot get container fea6ab8690b43384711c9b329132b93286302102ec1b869103030ace9f010b59's image: container not created from an image: not found
...
Jun 13 10:53:48 gold agent[3154138]: 2024-06-13 10:53:48 BST | CORE | WARN | (comp/core/autodiscovery/listeners/container.go:219 in computeContainerServiceIDs) | error while spliting image name: empty image name

Describe what happened:

No docker containers are autodiscovered

Describe what you expected:

Docker containers are autodiscovered (as is the case with v7.53)

Steps to reproduce the issue:

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

OS: Ubuntu (x64) Docker config:

{
  "storage-driver": "overlay2",
  "log-driver": "journald",
  "userns-remap": "default",
  "live-restore": true
}
clamoriniere commented 1 month ago

Hi @far-blue

Thanks for opening this issue,

Unfortunately the investigation will require more information. Could you please contact Datadog support and provide Agent and Cluster-Agent flare

You can share after the support ticket number here and reference this github issue in the support ticket.

Thanks and regards Cedric