Is the Ubuntu Docker image broken out of the box?

Should the following work out of the box?

$ docker pull ubuntu:14.04 $ docker run -ti ubuntu:14.04 root@8f0dcfdae9b6 :/# apt-get update 

Unfortunately, I get:

 ... Get:18 http://archive.ubuntu.com trusty-security/universe amd64 Packages [146 kB] Fetched 2490 kB in 8s (284 kB/s) Reading package lists... Done W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.ubuntu.com trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release W: Some index files failed to download. They have been ignored, or old ones used instead. 

So, I started to lower the rabbit with the addition of GPG keys manually, as suggested here , but it seems nuts that the official image of Ubuntu will be so broken field.

Is this Docker's thing, or do you think something is broken in the Ubuntu archives?

[EDIT]

Tried Ubuntu 14.04.2.

[EDIT 2]

This only happens on Boot2docker / OS X. On Ubuntu (the host system) this is not recreated. I tried updating boot2docker (to version 1.8) and starting with a new ISO image, but that doesn't help.

+5
source share
2 answers

I believe this is a problem with older Ubuntu in general and is not limited to Docker.

Try ubuntu:14.04.2

+2
source

Ultimately, the only thing that worked was after trying to manually install the GPG keys using apt-key adv , which would not replace the apt sources.list file with the entries created by this tool .

To be clear, I still get warnings that some packages cannot be checked, but at least after the upgrade, the actual installation of the packages I am dependent on will succeed. So this is not really a solution, rather like a hack.

0
source

All Articles