Skip to content
Back to skills

Cis Docker V170 5.1

ASecurity

Ensure swarm mode is not Enabled, if not needed

  • 2,182 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 3, 2026
securitygobashnodedocker

Works with

  • cli

Security analysis

A100/100

Scanned September 3, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Cis Docker V170 5.1?

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

Security grade badge for Cis Docker V170 5.1
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cyberstrikeus-cis-docker-v170-5-1/badge)](https://www.skillsdirectory.com/skills/cyberstrikeus-cis-docker-v170-5-1)

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-v170-5.1
description: "Ensure swarm mode is not Enabled, if not needed"
category: cis-docker
version: "1.7.0"
author: cyberstrike-official
tags: [cis, docker, runtime, configuration, swarm]
cis_id: "5.1"
cis_benchmark: "CIS Docker Benchmark v1.7.0"
tech_stack: [docker]
cwe_ids: []
chains_with: []
prerequisites: []
severity_boost: {}
---

# CIS Docker Benchmark v1.7.0 - Control 5.1

## Profile Applicability

- Level 1 - Docker - Linux

## Description

Do not enable swarm mode on a Docker engine instance unless this is needed.

## Rationale

By default, a Docker engine instance will not listen on any network ports, with all communications with the client coming over the Unix socket. When Docker swarm mode is enabled on a Docker engine instance, multiple network ports are opened on the system and made available to other systems on the network for the purposes of cluster management and node communications.

Opening network ports on a system increases its attack surface and this should be avoided unless required.

It should be noted that swarm mode is required for the operation of Docker Enterprise components.

## Impact

Disabling swarm mode will impact the operation of Docker Enterprise components if these are in use.

## Audit Procedure

Review the output of

```bash
docker info --format '{{ .Swarm }}'
```

If the output includes `active true` it indicates that swarm mode has been activated on the Docker engine. In this case, you should confirm if swarm mode on the Docker engine instance is actually needed.

## Remediation

If swarm mode has been enabled on a system in error, you should run the command below:

```bash
docker swarm leave
```

## Default Value

By default, Docker swarm mode is not enabled.

## References

1. https://docs.docker.com/engine/reference/commandline/swarm_leave/

## CIS Controls

**v8:**

- 4.8 Uninstall or Disable Unnecessary Services on Enterprise Assets and Software - Uninstall or disable unnecessary services on enterprise assets and software, such as an unused file sharing service, web application module, or service function.

**v7:**

- 9.2 Ensure Only Approved Ports, Protocols and Services Are Running - Ensure that only network ports, protocols, and services listening on a system with validated business needs, are running on each system.

## Assessment Status

Manual

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.

Comments

Loading comments…