TMAegisBeta
Thêm quy tắc cho docker

Docker

TMA-DOCKER-5.19

Ensure that the default ulimit is overwritten at runtime if needed

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

Mô tả

The default ulimit is set at the Docker daemon level. However, if you need to, you may override the default ulimit setting during container runtime. ulimit provides control over the resources available to the shell and to processes started by it. Setting system resource limits in a prudent fashion, protects against denial of service conditions. 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.

You should run the command below: docker ps --quiet --all | xargs docker inspect --format '{{ .Id }}: Ulimits={{ .HostConfig.Ulimits }}' This command should return Ulimits=<no value> for each container instance unless there is a need in a specific case to override the default settings.

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

You should only override the default ulimit settings if needed in a specific case. For example, to override default ulimit settings start a container as below: docker run -ti -d --ulimit nofile=1024:1024 centos sleep 1000

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
dockermanual
Tham chiếu
CIS Docker Benchmark v1.9.0 - 5.19 Ensure that the default ulimit is overwritten at runtime if needed