Docker

executor failed running [/bin/sh -c apt-get update]: exit code: 100 이슈

helperwoo 2023. 8. 18. 17:57
반응형

 

1. 이슈

docker-compose php 컨테이너 실행 중  "executor failed running [/bin/sh -c apt-get update]: exit code: 100" 에러 발생.

 

2. 원인

ubuntu system 시간과 실제 시간이 달라서 Dockerfile 내 "apt-get update" 실행 시 에러 발생

 

3. 해결

apt-get update 수행 전 명령어를 추가

RUN echo "Acquire::Check-Valid-Until \"false\";\nAcquire::Check-Date \"false\";" | cat > /etc/apt/apt.conf.d/10no--check-valid-until

RUN apt-get update

 

 

반응형