반응형
anchore는 docker image들을 scan하고 분석해 주는 유용한 툴이다.
[Docker image 분석 툴 Anchore 설치 : http://www.leafcats.com/159 ]
anchore의 각종 설정값 들이나 log 파일 위치, 분석한 결과들이 저장되는 anchore db의 경로 등을 확인하고 config 정보를 수정하는 것을 알아보자.
1. Anchore System Status
anchore system status [options]
anchore 명령어 중, anchore system status를 실행하면 다음과 같이 anchore 상태 정보가 출력된다.
여기에 option으로 --conf 를 주면 Anchore의 config 정보를 확인할 수 있다.
(Anchore 공식 wiki에는 옵션이 --config 라고 되어 있지만, conf가 맞다.)
anchore system status --conf
2. 설정값 수정
anchore configuration option 파일은 기본적으로 /root/.anchore/conf 하위에 있는 config.yaml파일을 적용받는다.
vi 에디터를 사용해 해당 파일을 수정해보자.
vi /root/.anchore/conf/config.yaml
anchore_auth_max_retries 값을 4로 변경해 주고 저장했다.
다시 "anchore system status --conf" 명령어로 config 정보를 확인해 보면, 해당 설정값이 변경되어 있는 것을 확인할 수 있다.
반응형