Closed
Description
I've trouble using the mongo docker image. If an apt-get update
is executed, it says that the keys are missing
Content of Dockerfile
FROM mongo
RUN apt-get update
sudo docker build -t test .
Sending build context to Docker daemon 2.048kB
Step 1/3 : FROM mongo
---> 196db2355239
Step 2/3 : RUN apt-get update
---> Running in e22a776808fe
Get:1 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Ign:2 http://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 InRelease
Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:4 http://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 Release [4405 B]
Get:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Get:7 http://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 Release.gpg [801 B]
Get:8 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB]
Ign:7 http://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 Release.gpg
Get:10 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
Get:11 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [27.6 kB]
Get:12 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [930 kB]
Get:13 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]
Get:14 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1053 kB]
Get:15 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [416 kB]
Get:16 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1367 kB]
Get:17 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [32.0 kB]
Get:18 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [6303 B]
Get:19 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [2668 B]
Get:20 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [782 kB]
Get:21 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [368 kB]
Reading package lists...
W: GPG error: http://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B00A0BD1E2C63C11
E: The repository 'http://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 Release' is not signed.
The command '/bin/sh -c apt-get update' returned a non-zero code: 100
Details of my docker installation:
sudo docker version
Client:
Version: 20.10.2
API version: 1.41
Go version: go1.13.8
Git commit: 20.10.2-0ubuntu2
Built: Tue Mar 2 05:51:34 2021
OS/Arch: linux/amd64
Context: default
Experimental: true
Server:
Engine:
Version: 20.10.2
API version: 1.41 (minimum version 1.12)
Go version: go1.13.8
Git commit: 20.10.2-0ubuntu2
Built: Tue Mar 2 05:45:16 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.4-0ubuntu1
GitCommit:
runc:
Version: 1.0.0~rc95-0ubuntu1~21.04.1
GitCommit:
docker-init:
Version: 0.19.0
GitCommit:
Metadata
Assignees
Labels
No labels