是否应该开箱即用?
$ docker pull ubuntu:14.04
$ docker run -ti ubuntu:14.04
root@8f0dcfdae9b6:/# apt-get update
可悲的是,我得到:
...
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.
所以我按照建议开始手动添加 GPG key 的整个过程 here ,但官方的 Ubuntu 镜像会如此开箱即用,这似乎很疯狂。
这是 Docker 的问题,还是您认为 Ubuntu 的文件中有什么问题?
[编辑]
也尝试过 Ubuntu 14.04.2。
[编辑 2]
仅在 Boot2docker/OS X 上发生。在 Ubuntu(主机系统)上,这不会重新创建。我试过升级 boot2docker(到 1.8)并从一个新的 ISO 镜像开始,但这没有帮助。
最佳答案
我认为这通常是较旧的 Ubuntu 的问题,并不局限于 Docker。
试试 ubuntu:14.04.2
关于开箱即用的 Ubuntu Docker 镜像?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31960585/