TMAegis베타
docker 관련 규칙 더 보기

Docker

TMA-DOCKER-4.8

Ensure that COPY is used instead of ADD in Dockerfiles

보통레벨 1수동 검토docker

설명

You should use the COPY instruction instead of the ADD instruction in the Dockerfile. The COPY instruction simply copies files from the local host machine to the container file system. The ADD instruction could potentially retrieve files from remote URLs and perform operations such as unpacking them. Reported as a manual review item: the audit needs a site-specific judgement.

점검 방법

감사 방식: 수동 검토

이 권장 사항은 자동으로 점검할 수 없습니다. --include-manual 옵션을 전달하면 스캔 결과에 이 지침과 함께 표시됩니다.

Run the command below to get the list of images: docker images Run the command below against each image in the list above and look for any ADD instructions: docker history <IMAGE ID> Alternatively, if you have access to the Dockerfile for the image, you should verify that there are no ADD instructions.

조치 방법

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

You should use COPY rather than ADD instructions in Dockerfiles.

속성

운영 체제
모두
태그
dockermanual
참고 자료
CIS Docker Benchmark v1.9.0 - 4.8 Ensure that COPY is used instead of ADD in Dockerfiles