
CodeBuildエラー Error while executing command: docker build
COMMAND_EXECUTION_ERROR: Error while executing command: docker build -t xxxx .. Reason: exit status 1
原因
- Dockerfileの中身で --no-cacheと記載していた
RUN yum install -y --no-cache httpd
なぜわかったのか
CloudWatch(ロググループ)に以下のエラーが出力されていたため
[91mCommand line error: no such option: --no-cache
対策
- --no-cacheを省いた
RUN yum install -y httpd