Problem
갑자기 docker build 시 아래 오류가 발생함
1
2
3
4
FROM node:16
RUN apt-get update || : && apt-get install python -y
RUN apt-get update && apt-get install -y openjdk-11-jdk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
$ docker-compose build --no-cache
[+] Building 3.9s (8/12)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 280B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 34B 0.0s
=> [internal] load metadata for docker.io/library/node:16 1.7s
=> [auth] library/node:pull token for registry-1.docker.io 0.0s
=> CACHED [1/7] FROM docker.io/library/node:16@sha256:68fc9f749931453d5c8545521b021dd97267e0692471ce15bdec0814ed1f8fc3 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 21.91kB 0.0s
=> [2/7] RUN apt-get update || : && apt-get install python -y 1.7s
=> ERROR [3/7] RUN apt-get update && apt-get install -y openjdk-11-jdk 0.4s
------
> [3/7] RUN apt-get update && apt-get install -y openjdk-11-jdk:
#7 0.269 Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
#7 0.313 Get:2 http://deb.debian.org/debian-security buster/updates InRelease [34.8 kB]
#7 0.316 Err:1 http://deb.debian.org/debian buster InRelease
#7 0.316 At least one invalid signature was encountered.
#7 0.353 Err:2 http://deb.debian.org/debian-security buster/updates InRelease
#7 0.353 At least one invalid signature was encountered.
#7 0.359 Get:3 http://deb.debian.org/debian buster-updates InRelease [56.6 kB]
#7 0.398 Err:3 http://deb.debian.org/debian buster-updates InRelease
#7 0.398 At least one invalid signature was encountered.
#7 0.401 Reading package lists...
#7 0.411 W: GPG error: http://deb.debian.org/debian buster InRelease: At least one invalid signature was encountered.
#7 0.411 E: The repository 'http://deb.debian.org/debian buster InRelease' is not signed.
#7 0.411 W: GPG error: http://deb.debian.org/debian-security buster/updates InRelease: At least one invalid signature was encountered.
#7 0.411 E: The repository 'http://deb.debian.org/debian-security buster/updates InRelease' is not signed.
#7 0.411 W: GPG error: http://deb.debian.org/debian buster-updates InRelease: At least one invalid signature was encountered.
#7 0.411 E: The repository 'http://deb.debian.org/debian buster-updates InRelease' is not signed.
------
executor failed running [/bin/sh -c apt-get update && apt-get install -y openjdk-11-jdk]: exit code: 100
ERROR: Service 'server' failed to build : Build failed
Solution
docker 에 할당된 사용량이 초과되었으므로 용량 정리를 해준 후 build 한다.
1
2
$ docker image prune -f
$ docker container prune -f