TMAegis
Thêm quy tắc cho docker

Docker

TMA-DOCKER-2.11

Ensure the default cgroup usage has been confirmed

Trung bìnhCấp 2Xem xét thủ côngdocker

Mô tả

The --cgroup-parent option allows you to set the default cgroup parent to use for all containers. If there is no specific usage requirement for this, the setting should be left at its default. System administrators typically define cgroups under which containers are supposed to run. Even if cgroups are not explicitly defined by the system administrators, containers run under docker cgroup by default. Reported as a manual review item: the audit needs a site-specific judgement.

Cách kiểm tra

Phương pháp kiểm tra: Xem xét thủ công

Khuyến nghị này không thể kiểm tra tự động. Lần quét sẽ liệt kê mục này kèm hướng dẫn khi bạn truyền cờ --include-manual.

In order to confirm this setting, the dockerd start-up options and any settings in /etc/docker/daemon.json should be reviewed. To review the dockerd startup options, use: grep "--cgroup-parent" /etc/docker/daemon.json You should ensure that the --cgroup-parent parameter is either not set or is set as appropriate non-default cgroup. The contents of /etc/docker/daemon.json should also be checked for this setting.

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

The default setting is in line with good security practice and can be left in situ. If you wish to specifically set a non-default cgroup, pass the --cgroup-parent parameter to the Docker daemon when starting it. For example: dockerd --cgroup-parent=/foobar

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
dockermanual
Tham chiếu
CIS Docker Benchmark v1.9.0 - 2.11 Ensure the default cgroup usage has been confirmed