frodenas / docker-mongodb

A Dockerfile that produces a Docker Image for MongoDB
Apache License 2.0
37 stars 46 forks source link

PGP issue #3

Closed wheelerlaw closed 8 years ago

wheelerlaw commented 8 years ago

Not sure what is going on:

Sending build context to Docker daemon 89.09 kB
Sending build context to Docker daemon 
Step 0 : FROM frodenas/ubuntu
latest: Pulling from frodenas/ubuntu
3aab33c05776: Pull complete 
fa701c755887: Pull complete 
5e6679fa337b: Pull complete 
4ed5b1cffbdf: Pull complete 
582f75c3f95c: Pull complete 
f15ce52fc004: Already exists 
c4fae638e7ce: Already exists 
a4c5be5b6e59: Already exists 
8693db7e8a00: Already exists 
Digest: sha256:e04fbb8413cd10539c178a3f1f725753cf0efee9deaaeec7712dffb56fa64034
Status: Downloaded newer image for frodenas/ubuntu:latest
 ---> 582f75c3f95c
Step 1 : MAINTAINER Ferran Rodenas <frodenas@gmail.com>
 ---> Running in 4223bdcc0527
 ---> a140959eaae9
Removing intermediate container 4223bdcc0527
Step 2 : RUN DEBIAN_FRONTEND=noninteractive &&     apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 &&     echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.0.list &&     apt-get update &&     apt-get install -y --force-yes mongodb-org=3.0.7 mongodb-org-server=3.0.7 mongodb-org-shell=3.0.7 mongodb-org-mongos=3.0.7 mongodb-org-tools=3.0.7 &&     service mongod stop &&     apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
 ---> Running in 250f6ac92d8f
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.ds7Djuzavc --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
gpg: requesting key 7F0CEB10 from hkp server keyserver.ubuntu.com
?: keyserver.ubuntu.com: Host not found
gpgkeys: HTTP fetch error 7: couldn't connect: Connection timed out
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
INFO[0078] The command [/bin/sh -c DEBIAN_FRONTEND=noninteractive &&     apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 &&     echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.0.list &&     apt-get update &&     apt-get install -y --force-yes mongodb-org=3.0.7 mongodb-org-server=3.0.7 mongodb-org-shell=3.0.7 mongodb-org-mongos=3.0.7 mongodb-org-tools=3.0.7 &&     service mongod stop &&     apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*] returned a non-zero code: 2 
frodenas commented 8 years ago

Transient error? I've just build the image on my local machine and it was able to fetch the key.

Sending build context to Docker daemon 118.8 kB
Step 1 : FROM frodenas/ubuntu
latest: Pulling from frodenas/ubuntu

8387d9ff0016: Pull complete
3b52deaaf0ed: Pull complete
4bd501fad6de: Pull complete
a3ed95caeb02: Pull complete
9d20913307b0: Pull complete
Digest: sha256:e04fbb8413cd10539c178a3f1f725753cf0efee9deaaeec7712dffb56fa64034
Status: Downloaded newer image for frodenas/ubuntu:latest
 ---> 2e64443146a3
Step 2 : MAINTAINER Ferran Rodenas <frodenas@gmail.com>
 ---> Running in ff5065385ac9
 ---> 9f7f59db3186
Removing intermediate container ff5065385ac9
Step 3 : RUN DEBIAN_FRONTEND=noninteractive &&     apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 &&     echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.0.list &&     apt-get update &&     apt-get install -y --force-yes mongodb-org=3.0.7 mongodb-org-server=3.0.7 mongodb-org-shell=3.0.7 mongodb-org-mongos=3.0.7 mongodb-org-tools=3.0.7 &&     service mongod stop &&     apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
 ---> Running in 4e7b9d57ff77
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.U7UUKDbCyD --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
gpg: requesting key 7F0CEB10 from hkp server keyserver.ubuntu.com
gpg: key 7F0CEB10: public key "Richard Kreuter <richard@10gen.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse
Ign http://repo.mongodb.org trusty/mongodb-org/3.0 InRelease
...
wheelerlaw commented 8 years ago

yeah, it was an issue with docker. For some reason, the only way I can get my containers to reach the internet is to put --net=host as a parameter for docker run.

frodenas commented 8 years ago

Ok, glad you fixed it.