惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hacker News: Front Page
P
Palo Alto Networks Blog
T
ThreatConnect
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
T
True Tiger Recordings
P
Privacy & Cybersecurity Law Blog
B
Blog
IT之家
IT之家
Last Week in AI
Last Week in AI
F
Full Disclosure
Hacker News: Ask HN
Hacker News: Ask HN
C
Comments on: Blog
Microsoft Azure Blog
Microsoft Azure Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
N
News and Events Feed by Topic
NISL@THU
NISL@THU
腾讯CDC
雷峰网
雷峰网
Security Latest
Security Latest
李成银的技术随笔
M
Microsoft Research Blog - Microsoft Research
L
LangChain Blog
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Check Point Blog
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
博客园 - Franky
N
News | PayPal Newsroom
V
V2EX
A
About on SuperTechFans
The Register - Security
The Register - Security
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google Online Security Blog
Google Online Security Blog
MyScale Blog
MyScale Blog
Cisco Talos Blog
Cisco Talos Blog
Vercel News
Vercel News
WordPress大学
WordPress大学
C
Cyber Attacks, Cyber Crime and Cyber Security
The Hacker News
The Hacker News
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
爱范儿
爱范儿
A
Arctic Wolf
L
LINUX DO - 最新话题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

Datadog | The Monitor blog

Reduce CVE noise with OpenVEX assessments in Datadog How we made a SQL query optimization agent 59% more accurate using autoresearch and LLM Observability How to audit and clean up monitors effectively Diagnose slow PostgreSQL queries faster with explain plan correlation Explore Datadog metrics with Natural Language Queries Toto 2.0: Time series forecasting enters the scaling era Simplify micro-frontend observability with Datadog RUM Attribute AI costs across providers with Datadog Cloud Cost Management Diagnose and resolve database performance issues faster with Database Investigator Datadog for Government achieves FedRAMP® High certification Analyze cloud costs with flexible spreadsheets in Datadog Sheets Inside Datadog’s AI Research Lab: Meet two PhD candidates behind Toto Connect triage and investigation in a single workflow with Datadog Cloud SIEM This Month in Datadog - April 2026 Monitor and optimize Supabase query performance with Datadog Database Monitoring Add dynamically updating context to logs with Reference Tables and Observability Pipelines Introducing ARFBench: A time series question-answering benchmark based on real incidents The product signal latency gap slowing your growth Test network paths with TCP, UDP, and ICMP in Datadog Turn developer feedback into operational insight with Datadog Forms and Sheets How to investigate cloud credential compromise with Bits AI Security Analyst Evaluate, optimize, and secure your Google Cloud AI stack with Datadog Bringing observability data hosting to the UK on AWS Identify and fix code issues faster with Datadog’s Azure DevOps Source Code integration Steganography at scale: Embedding share URLs in Datadog widget screenshots Every team should be A/B testing Centralize observability management with Datadog Governance Console Spotting CI/CD misconfigurations before the bots do: Securing GitHub Actions with Datadog IaC Security Route OTel data from AI apps to ClickHouse and Datadog using Observability Pipelines Manage service tracing across hosts with Single Step Instrumentation rules Offline evaluation for AI agents: Best practices Detect runtime threats in Python Lambda functions with Datadog AAP Introducing our open source AI-native SAST Instrument and monitor Boomi integration flows with OpenTelemetry and Datadog Not all index scans are equal: How we cut query latency by over 99% Platform engineering metrics: What to measure and what to ignore Integrate Recorded Future threat intelligence with Datadog Cloud SIEM CI/CD security: threat modeling using a MITRE-style threat matrix CI/CD security: How to secure your GitHub ecosystem Ingress NGINX is EOL: A practical guide for migrating to Kubernetes Gateway API How we built a real-world evaluation platform for autonomous SRE agents at scale Operating agentic AI with Amazon Bedrock AgentCore and Datadog LLM Observability: Lessons from NTT DATA Introducing the Datadog Code Security MCP Capture and analyze custom heatmaps in Session Replay Understand session replays faster with AI summaries and smart chapters Monitor ClickHouse query performance with Datadog Database Monitoring How we designed empathetic alert sounds for on-call engineers Search and act across Datadog to resolve issues faster with Bits Assistant Measure the business impact of every product change with Datadog Experiments Analyzing round trip query latency Configuring JavaScript caches for better performance Introducing Bits AI Dev Agent for Code Security Datadog achieves ISO 42001 certification for responsible AI Monitor Nutanix clusters, hosts, and VMs with Datadog Monitor Juniper Mist in Datadog A new Host Map for modern infrastructure When upserts don't update but still write: Debugging Postgres performance at scale Annotate traces to improve LLM quality with Datadog LLM Observability What's new in Cloud SIEM: AI-powered investigations, enhanced threat intelligence, and scalable security operations Explore Kubernetes with native OpenTelemetry data Monitor Oracle Fusion Cloud Applications with Datadog Announcing the Datadog Terraform provider v4.0.0 Scaling Kubernetes workloads on custom metrics How to design cloud environments for AI-powered threat analysis Monitor Aruba Central in Datadog How we centralize and remediate risks with Datadog Case Management Accelerate incident response with Datadog and ServiceNow Monitor your application and network load balancer logs Understanding Karpenter architecture for Kubernetes autoscaling Tools for collecting metrics and logs from Karpenter Monitor Karpenter with Datadog What your product data is actually saying Key metrics for monitoring Karpenter Securing Datadog's platform in the AI age: The role of observability data Closing the verification loop: Observability-driven harnesses for building with agents When an AI agent came knocking: Catching malicious contributions in Datadog’s open source repos Closing the verification loop, Part 2: Fully autonomous optimization Four ways engineering teams use the Datadog MCP Server to power AI agents Approaching your observability migration with the right mindset Meet the new Bits AI SRE: Deeper reasoning, twice as fast Designing MCP tools for agents: Lessons from building Datadog's MCP server Key learnings from the 2026 State of DevSecOps study Use plain English to query your multi-cloud infrastructure in Resource Catalog Simplifying troubleshooting across the user journey with Datadog Synthetic Monitoring Protect your OCI resources with Datadog Cloud Security This Month in Datadog - February 2026 Fine-tune Toto for turbocharged forecasts Amazon EC2 security: How misconfigured and public AMIs expand your cloud attack surface Enable end-to-end visibility into your Java apps with a single command Measure and improve mobile app startup performance with Datadog RUM Evaluating our AI Guard application to improve quality and control cost Identify untested code across every level of your codebase Make use of guardrail metrics and stop babysitting your releases Monitor Versa Networks SD-WAN performance in Datadog How we reduced the size of our Agent Go binaries by up to 77% Improve performance and reliability with APM Recommendations Remediate transitive vulnerabilities faster with Datadog Software Composition Analysis Generate audit-ready vulnerability and compliance reports with Datadog Sheets Monitor Fortinet FortiManager performance in Datadog Improve test coverage across codebases with Datadog Code Coverage
Missing container-layer metadata: Why it happens and what you can do
2025-07-16 · via Datadog | The Monitor blog
Stephanie Wei

Stephanie Wei

Nicholas Thomson

Nicholas Thomson

Container image layers provide valuable insight into what goes into a container, including which packages were installed, what commands were run, and where vulnerabilities might live. The metadata associated with these image layers is essential for debugging, optimizing image size, and managing security risks. However, key container-layer metadata fields such as digest, size, and created_by are sometimes missing, which can disrupt important tasks. Each of these metadata fields plays an important role in understanding the health of your system:

  • Without digest, it’s difficult to trace child images back to their base images.
  • Without size, it’s harder to detect bloated layers or identify optimization opportunities.
  • Without created_by, security teams can’t correlate vulnerabilities with specific commands or package additions.

In this post, we’ll explore the root causes of these missing fields and provide strategies to recover or work around them.

The Open Container Initiative (OCI) Spec defines how container images are structured for compatibility across tools. Some fields are required for runtime correctness, while others—though optional—are highly useful for visibility and analysis. Optional fields may not always be populated by container runtimes, and their absence will be reflected in your observability solutions, including Datadog Container Monitoring’s container images view.

Optional fields under history like created, author, created_by, comment, and empty_layer are commonly absent, but they are helpful for reconstructing build timelines, debugging, understanding how a layer was created, and maintaining compliance. Beyond these, two important metadata fields defined in the OCI descriptor objectdigest and size—are also frequently missing, and we’ll explore why below.

Root causes of missing fields

There are several reasons why container image metadata fields like digest, size, and created_by might be missing. Some of these reasons are expected and tied to how container layers work, while others stem from the limitations or behaviors of specific build tools. In this section, we’ll walk through the most common scenarios that lead to missing fields, explain whether they’re expected or problematic, and offer guidance on what you can do about them.

Temporary intermediate layers

Temporary intermediate or “empty” layers (where empty_layer=true) represent operations that don’t change the image file system, such as setting environment variables or setting arguments. While these layers are important for caching, they don’t generate file system changes, so they don’t receive digest or size values.

This behavior is expected and nothing to worry about—in this case, digest and size are intentionally omitted because the layer doesn’t introduce any changes to the image’s file system. Since there’s no new content to hash or measure, these fields are simply not applicable. In the UI example below, layers using commands like ARG lack digest and size, while those modifying the file system (e.g., WORKDIR) include both.

Digest and size do not have data for the digest and size fields.

Missing digest

In some cases, the digest field is marked <missing> as a default display in the Datadog UI when there is missing data for Docker images. This is confusing, as -- also represents missing data and suggests tooling bugs or incorrect image construction.

The digest field show <missing> for Docker images.

If you run into this issue, your first strategy should be to update the datadog-agent version to ≥ 7.64, which should repopulate most of the <missing> digest fields with non-missing values. Alternatively, you can re-export the image by using another runtime, such as containerd, which will replace <missing> with -- as well as potentially recover missing digests.

Third-party tooling

There are several types of third-party container image tools that can result in missing image-layer metadata.

Jib-built images

Jib is an open source tool developed by Google that builds container images for Java applications without requiring a Docker daemon or writing a Dockerfile. It’s designed to work seamlessly with Maven and Gradle, enabling Java developers to containerize applications as part of their regular build process. Some Jib versions omit metadata fields like created or created_by and set timestamps to the Unix epoch by default, which results in missing metadata. The solution is to upgrade to Jib ≥ 0.9.10 to incorporate layer history and explicitly set creationTime in your Maven or Gradle config, as shown in the examples below:

Maven:

<configuration>

<container>

<creationTime>2019-07-15T10:15:30+09:00</creationTime>

</container>

</configuration>

Gradle:

jib.container.creationTime = '2019-07-15T10:15:30+09:00'

Rules-oci

Rules-oci is a Bazel ruleset for building, manipulating, and publishing OCI-compliant container images. The images are built using Bazel’s build system instead of through a daemon. This means the history must be manually added during implementation or as part of the build process. Because rules_oci v1 and earlier versions of rules_oci v2 builds omit history fields, you should update your rules_oci package to one that includes this change (any version ≥ v2.0.0).

Crane flatten

Crane is an open source command-line tool built on top of Docker commands that lets you inspect and modify containers. The crane flatten command merges multiple image layers into a single one, which can simplify or optimize images. However, the resulting layer often lacks a created_time. The omission is due to the tool not explicitly setting this field in the source code. To solve this issue, you can wait for this open source change to the source code maintained by Google, or fork and create the changes yourself—if you want more flexibility—and insert a created field, as shown in the example below.

img, err = mutate.Append(img, mutate.Addendum{

Layer: layer,

History: v1.History{

CreatedBy: fmt.Sprintf("%s flatten %s", use, digest),

Comment: string(oldHistory),

// We can see that there is no created time here

// Add "Created" field from the History type and necessary changes to propagate value from unflattened images

},

})

Challenges with base images

When the base image is missing metadata in its layers, any child image built from it will inherit that missing information.

Child images inherit missing metadata from the base image.

In the example above, there is no visible association of child layers to base image layers, which means you can’t easily tell which layers came from the base image. Although the FROM command sets the base image, this command isn’t recorded in the layer history. Instead, the base image’s layers are stacked with the new ones added in your build script without explicitly associating whether each layer belongs to a base image.

Unless you compare layer digests manually or refer to the original build script, it’s hard to tell which layer came from where. To figure out which layers came from the base image, you’d have to manually compare the layers in your image with those in other images—or look at the original Dockerfile or build scripts. Since there is a one-to-one association between base and child images’ layers, missing metadata in base image layers are inherited by the child image. For base images maintained by a third party, you can try contacting the image maintainer to request inclusion of the missing metadata when they construct their images. Otherwise, if you own the base image yourself, you’ll need to build the base image to recreate the image with correct metadata by using the methods we outlined above.

Summary

This table summarizes the expected reasons for each missing field as observed from the common patterns we’ve discussed.

Missing fieldReasonRemediation
digest
  • Outdated datadog-agent
  • Temporary layer
  • rules_oci
  • Upgrade datadog-agent to version ≥ 7.64
  • Re-export image
  • Update rules_oci to version ≥ v2.0.0
sizeTemporary layerN/A
created_byrules_ociUpdate rules_oci to version ≥ v2.0.0
created
  • rules_oci
  • Crane
  • Jib
Any
  • Base image lacks field
  • Third-party tool does not build image with field
Rebuild image to include metadata

In this post, we’ve walked through why container image metadata like digest, size, and created_by may be missing, as well as practical solutions and tools to regain visibility. If you want to see how we help you understand what’s inside your containers, check out the container images view in Datadog Container Monitoring. Or, if you’re new to Datadog, sign up for a free trial to get started.