For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/security/default_rules/af5-3mp-epu.md. A documentation index is available at /llms.txt.

The /etc/docker directory permissions should be set to 755 or stricter

docker

Classification:

compliance

Framework:

cis-docker

Control:

3.6

Description

The /etc/docker directory should have mode 755 or stricter.

Rationale

/etc/docker holds daemon.json and the TLS certificates and keys of the Docker daemon. Mode 755 or stricter leaves only root able to write it.

Audit

Show the mode of /etc/docker:

stat -c '%a' /etc/docker

Datadog passes the rule when /etc/docker has mode 755 or stricter, fails it when the mode is less strict, and reports it not applicable when the path is absent.

Remediation

Set the mode:

chmod 755 /etc/docker

Impact

None.

Default value

Docker creates /etc/docker with owner root:root and mode 755.

References

  1. https://docs.docker.com/engine/security/protect-access/