TMAegis베타
docker 관련 규칙 더 보기

Docker

TMA-DOCKER-5.19

Ensure that the default ulimit is overwritten at runtime if needed

보통레벨 1수동 검토docker

설명

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.

점검 방법

감사 방식: 수동 검토

이 권장 사항은 자동으로 점검할 수 없습니다. --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.

조치 방법

조치 방식: 가이드 또는 인프라 패치

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

속성

운영 체제
모두
태그
dockermanual
참고 자료
CIS Docker Benchmark v1.9.0 - 5.19 Ensure that the default ulimit is overwritten at runtime if needed