마이라이프해피라이프
[Docker] executor failed running error 본문
1. 명령어
: docker build --tag (tag 이름) .
>실행 시 오류 발생
#7 0.294 Get:1 http://security.debian.org/debian-security bullseye-security InRelease [44.1 kB]
#7 0.304 Get:2 http://deb.debian.org/debian bullseye InRelease [113 kB]
#7 0.342 Get:3 http://deb.debian.org/debian bullseye-updates InRelease [39.4 kB]
#7 0.534 Get:4 http://deb.debian.org/debian bullseye/main amd64 Packages [8178 kB]
#7 1.954 Reading package lists...
#7 2.418 E: Release file for http://security.debian.org/debian-security/dists/bullseye-security/InRelease is not valid yet (invalid for another 10d 15h 1min 48s). Updates for this repository will not be applied.
#7 2.418 E: Release file for http://deb.debian.org/debian/dists/bullseye-updates/InRelease is not valid yet (invalid for another 10d 23h 7min 48s). Updates for this repository will not be applied.
------
executor failed running [/bin/sh -c apt-get update]: exit code: 100
2. 해결법
▶ --no-cache 붙여서 build 하기
그래도 안되면 컴퓨터 재부팅
▶ docker build --no-cache .
> 입력 후 다시 image build 하기
컴퓨터 재부팅 하니까 바로 해결됨!