---
title: "Tech Tip #46: Do containers waste energy?"
description: "Containers add a small energy tax. Consolidation pays it back."
url: https://greencode.ai/tech-tips/46-containers-myth/
---

# Tech Tip #46: Do containers waste energy?

**Containers add a small energy tax. Consolidation pays it back.**

[Watch the video](https://media.greencode.ai/shorts/containers-myth-8889f2ffdf42.mp4)

Video created by [explainapaper.com](https://explainapaper.com/?utm_source=greencode.ai&utm_medium=film&utm_campaign=made-by)

### The problem

Some teams avoid containers fearing overhead. Measurements show Docker adds slightly more energy than bare metal, mostly from I/O virtualisation, but packing workloads onto fewer machines usually outweighs it.

### The fix you can use today

- Consolidate containers onto fewer, busier nodes.
- Avoid unnecessary layers of virtualisation (containers inside VMs inside VMs).
- Shut down nodes the bin-packing frees up.

A study found that Docker adds only a little energy compared with running on the bare machine. GreenCode's research review draws on this work.

### Tools that help

- [Kepler](https://github.com/sustainable-computing-io/kepler?utm_source=greencode.ai&utm_medium=referral&utm_campaign=greencode): exports energy estimates per pod and container on Kubernetes, using eBPF and hardware counters
- [Scaphandre](https://github.com/hubblo-org/scaphandre?utm_source=greencode.ai&utm_medium=referral&utm_campaign=greencode): measures the power drawn by each process on a Linux server and exports it to Prometheus and other monitoring stacks

### How GreenCode helps

GreenCode helps tackle this by mining a running estate, rebuilding it as infrastructure as code and tracing energy and CO2e to the services that cause it, including services barely running at all. [More on this](https://greencode.ai/feature/infrastructure-carbon-footprint-assessment/).

### Tags

#docker#kubernetes#right-sizing

### Sources

- [GreenCode State of the Art Review, D2.1 (2025), PDF p. 126: Docker adds a slight increase in energy vs bare metal due to I/O virtualisation, usually outweighed by consolidation (Santos et al. 2018)](https://greencode.ai/publications/d2-1-state-of-the-art-review/)
- [Green Software Foundation, Green Software Patterns: containerise your workloads](https://github.com/Green-Software-Foundation/patterns/blob/main/docs/architecture/system-topology/containerize-your-workload-where-applicable.md?utm_source=greencode.ai&utm_medium=referral&utm_campaign=greencode)

[All GreenCode Tech Tips](https://greencode.ai/tech-tips/)

#### Key Facts

- Tip **#46**
- For **Ops and infrastructure**
- Category **Containers, Kubernetes and serverless**
- Format **short video**
![GreenCode](https://greencode.ai/wp-content/uploads/2024/12/greencode-logo-website-small-colours-2.webp)

Want this checked on your own system? Talk to the GreenCode team.

[Get in touch](https://greencode.ai/contact/)
