CodeBuildエラー Error while executing command: docker build

 

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(ロググループ)に以下のエラーが出力されていたため

Command line error: no such option: --no-cache

 

対策

  • --no-cacheを省いた
RUN yum install -y httpd

 

おすすめの記事