I have the following Dockerfile:
FROM python:3.8-buster
RUN apt-get update -q
When I run docker build . I get:
[+] Building 1.2s (5/5) FINISHED
=> [internal] load build definition from Dockerfile.cpu 0.0s
=> => transferring dockerfile: 40B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 34B 0.0s
=> [internal] load metadata for docker.io/library/python:3.8-buster 0.4s
=> CACHED [1/2] FROM docker.io/library/python:3.8-buster@sha256:d8c335648469f670530 0.0s
=> ERROR [2/2] RUN apt-get update -q 0.7s
------
> [2/2] RUN apt-get update -q:
#5 0.378 Get:1 http://deb.debian.org/debian buster InRelease [121 kB]
#5 0.378 Get:2 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
#5 0.434 Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
#5 0.491 Err:2 http://security.debian.org/debian-security buster/updates InRelease
#5 0.491 At least one invalid signature was encountered.
#5 0.557 Err:1 http://deb.debian.org/debian buster InRelease
#5 0.557 At least one invalid signature was encountered.
#5 0.605 Err:3 http://deb.debian.org/debian buster-updates InRelease
#5 0.605 At least one invalid signature was encountered.
#5 0.610 Reading package lists...
#5 0.621 W: GPG error: http://security.debian.org/debian-security buster/updates InRelease: At least one invalid signature was encountered.
#5 0.621 E: The repository 'http://security.debian.org/debian-security buster/updates InRelease' is not signed.
#5 0.621 W: GPG error: http://deb.debian.org/debian buster InRelease: At least one invalid signature was encountered.
#5 0.621 E: The repository 'http://deb.debian.org/debian buster InRelease' is not signed.
#5 0.621 W: GPG error: http://deb.debian.org/debian buster-updates InRelease: At least one invalid signature was encountered.
#5 0.621 E: The repository 'http://deb.debian.org/debian buster-updates InRelease' is not signed.
------
executor failed running [/bin/sh -c apt-get update -q]: exit code: 100
Surely there is something pretty basic I am missing here.
❯ docker --version
Docker version 20.10.5, build 55c4c88
I have the following Dockerfile:
When I run
docker build .I get:Surely there is something pretty basic I am missing here.