Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Sadly, 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 going down the rabbit whole of adding GPG keys manually, as suggested here, but it seems nuts that the official Ubuntu image would be so broken out of the box.

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

[EDIT]

Tried Ubuntu 14.04.2 as well.

[EDIT 2]

Happens only on Boot2docker / OS X. On Ubuntu (host system) this does not recreate. I've tried upgrading boot2docker (to 1.8) and starting with a fresh ISO image, but that doesn't help.

like image 520
Assaf Lavie Avatar asked Oct 30 '22 21:10

Assaf Lavie


1 Answers

I believe this is an issue with the older Ubuntu in general and not limited to Docker.

Try ubuntu:14.04.2

like image 154
Marcus Hughes Avatar answered Nov 02 '22 10:11

Marcus Hughes