Skip to content
Back to skills

Cis Docker 2.9

ASecurity

Ensure the default ulimit is configured appropriately

  • 3,723 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 3, 2026
securitygoshellbashdockergitdatabasesecurity

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add CyberStrikeus/CyberStrike --skill cis-docker-2.9 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cis Docker 2.9?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cis Docker 2.9
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cyberstrikeus-cis-docker-2-9/badge)](https://www.skillsdirectory.com/skills/cyberstrikeus-cis-docker-2-9)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cis-docker-2.9
description: "Ensure the default ulimit is configured appropriately"
category: cis-docker
version: "1.8.0"
author: cyberstrike-official
tags: [cis, docker, linux, containers, daemon-configuration, ulimit, resource-limits]
cis_id: "2.9"
cis_benchmark: "CIS Docker Benchmark v1.8.0"
tech_stack: [linux, docker]
cwe_ids: []
chains_with: []
prerequisites: []
severity_boost: {}
---

# Ensure the default ulimit is configured appropriately (Manual)

## Profile Applicability

• Level 1 - Docker - Linux

## Description

Set the default ulimit options as appropriate in your environment.

## Rationale

`ulimit` provides control over the resources available to the shell and to processes which it starts. Setting system resource limits judiciously can save you from disasters such as a fork bomb. On occasion, even friendly users and legitimate processes can overuse system resources and can make the system unusable.

Setting the default ulimit for the Docker daemon enforces the ulimit for all container instances. In this case you would not need to setup ulimit for each container instance. However, the default ulimit can be overridden during container runtime, if needed. Therefore, in order to have proper control over system resources, define a default ulimit as is needed in your environment.

## Impact

If ulimits are set incorrectly this could cause issues with system resources, possibly causing a denial of service condition.

## Audit Procedure

To confirm this setting you should review the dockerd start-up options and any settings in `/etc/docker/daemon.json`.

To review the dockerd startup options, use:

```bash
ps -ef | grep dockerd
```

Ensure that the `--default-ulimit` parameter is set as appropriate.

The contents of `/etc/docker/daemon.json` should also be reviewed for this setting.

## Remediation

Run Docker in daemon mode and pass `--default-ulimit` as argument with respective ulimits as appropriate in your environment and in line with your security policy.

For Example,

```bash
dockerd --default-ulimit nproc=1024:2048 --default-ulimit nofile=100:200
```

## Default Value

By default, no ulimit is set.

## References

1. https://docs.docker.com/engine/reference/commandline/dockerd/#default-ulimit-settings

## CIS Controls

**Controls Version:** v8

**Control:** 16.7 Use Standard Hardening Configuration Templates for Application Infrastructure

Use standard, industry-recommended hardening configuration templates for application infrastructure components. This includes underlying servers, databases, and web servers, and applies to cloud containers, Platform as a Service (PaaS) components, and SaaS components. Do not allow in-house developed software to weaken configuration hardening.

**IG 1:**
**IG 2:** ●
**IG 3:** ●

---

**Controls Version:** v7

**Control:** 18 Application Software Security

Application Software Security

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.