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

推荐订阅源

Project Zero
Project Zero
F
Fortinet All Blogs
博客园 - 叶小钗
阮一峰的网络日志
阮一峰的网络日志
月光博客
月光博客
爱范儿
爱范儿
博客园_首页
S
Security @ Cisco Blogs
H
Heimdal Security Blog
Cyberwarzone
Cyberwarzone
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
Tailwind CSS Blog
T
Threatpost
博客园 - 司徒正美
The GitHub Blog
The GitHub Blog
WordPress大学
WordPress大学
S
Security Affairs
AWS News Blog
AWS News Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Cisco Talos Blog
Cisco Talos Blog
博客园 - 聂微东
P
Privacy & Cybersecurity Law Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
NISL@THU
NISL@THU
G
GRAHAM CLULEY
人人都是产品经理
人人都是产品经理
L
LangChain Blog
The Register - Security
The Register - Security
L
LINUX DO - 最新话题
博客园 - 【当耐特】
P
Proofpoint News Feed
Schneier on Security
Schneier on Security
Application and Cybersecurity Blog
Application and Cybersecurity Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
P
Proofpoint News Feed
IT之家
IT之家
云风的 BLOG
云风的 BLOG
量子位
D
Darknet – Hacking Tools, Hacker News & Cyber Security
PCI Perspectives
PCI Perspectives
腾讯CDC
大猫的无限游戏
大猫的无限游戏
美团技术团队
N
News | PayPal Newsroom
Recent Commits to openclaw:main
Recent Commits to openclaw:main
D
Docker
A
Arctic Wolf
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Cloudbric
Cloudbric

Datadog | The Monitor blog

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 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 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 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 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 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 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 Move fast, don’t break things: Consistent testing standards at scale Enrich logs with ServiceNow CMDB context before routing to any SIEM or logging tool Monitor Lustre with Datadog Make faster, better product decisions with Datadog Product Analytics Surface and remediate runtime posture issues with Workload Protection Findings Protect agentic AI applications with Datadog AI Guard How to optimize JavaScript code with CSS Trace Google Pub/Sub workloads in Cloud Run with Datadog Detect human names in logs with ML in Sensitive Data Scanner How we cut our NLQ agent debugging time from hours to minutes with LLM Observability Debug PostgreSQL query latency faster with EXPLAIN ANALYZE in Datadog Database Monitoring Datadog acquires Propolis Unify and correlate frontend and backend data with retention filters Scale compliance across global frameworks with Datadog Cloud Security Monitor Arista VeloCloud SD-WAN performance with Datadog Building reliable dashboard agents with Datadog LLM Observability Simplify log collection and aggregation for MSSPs with Datadog Observability Pipelines Mitigation for Node.js denial-of-service vulnerability affecting Datadog APM Automate flaky test fixes with the Bits AI Dev Agent and Test Optimization How we built an AI SRE agent that investigates like a team of engineers Datadog integrations 2025 recap: Observability for AI, security, and hybrid cloud Design effective executive dashboards with Datadog Implement dbt data quality checks with dbt-expectations Bring faster visibility into AWS Lambda functions with remote instrumentation Troubleshoot faster with the GitLab Source Code integration in Datadog How Cambia Health Solutions saved $30,000 monthly with Cloud Cost Management and the Datadog Resource Catalog Normalize any logs for Cloud SIEM with Datadog's OCSF processor Optimizing Datadog at scale: Cost-efficient observability at Zendesk Detect, diagnose, and resolve network issues easily with CNM Network Health Connect engineering errors to user impact in early-stage products Cilium configuration for Kubernetes operations at scale Designing feedback loops for progressive delivery Ship features faster and safer with Datadog Feature Flags Choosing the right OpenTelemetry Collector distribution Route your monitor alerts with Datadog monitor notification rules Automate Cloud SIEM investigations with Bits AI Security Analyst Cloud threat detection: How to identify risky activity across control and data planes Collecting Kafka performance metrics Monitoring Kafka with Datadog Monitoring Kafka performance metrics
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.