Docker

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

helperwoo Dev 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

 

 

반응형

'Docker' 카테고리의 다른 글

Docker compose configuration  (0) 2024.04.04
RabbitMQ Docker compose 구성하기  (0) 2024.03.27
Docker 명령어 정리  (0) 2024.01.15
PHP, Nginx, MySQL 환경 Docker Compose 구성하기  (0) 2023.08.18
Docker container를 Docker image로 빌드  (0) 2022.12.17