Docker
TMA-DOCKER-5.1
Ensure swarm mode is not Enabled, if not needed
Trung bìnhCấp 1Tự độngdocker
Mô tả
Swarm mode opens management ports and a raft store; it should be disabled when the host is not part of a swarm. The audit reads Swarm.LocalNodeState from docker info.
Cách kiểm tra
Phương pháp kiểm tra: Lệnh shell
shell
docker info --format '{{.Swarm.LocalNodeState}}'- Đầu ra mong đợi
inactive
Cách khắc phục
Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng
If swarm mode is not needed, leave it with 'docker swarm leave' (managers: --force) after migrating services.
Thuộc tính
- Hệ điều hành
- Bất kỳ
- Thẻ
- dockerruntimeswarm
- Tham chiếu
- CIS Docker Benchmark v1.9.0 - 5.1 Ensure swarm mode is not Enabled, if not needed
Kiểm tra máy này
Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.
shell
tmaegis scan --target docker