【发布时间】:2015-08-12 09:02:46
【问题描述】:
以下是否应该开箱即用?
$ 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.
所以我开始按照here 的建议手动添加 GPG 密钥,但官方 Ubuntu 映像开箱即用似乎很疯狂。
这是 Docker 的问题,还是您认为 Ubuntu 的档案有问题?
[编辑]
也试过 Ubuntu 14.04.2。
[编辑 2]
仅在 Boot2docker / OS X 上发生。在 Ubuntu(主机系统)上,这不会重新创建。我尝试将 boot2docker 升级(到 1.8)并从新的 ISO 映像开始,但这没有帮助。
【问题讨论】:
-
结束投票? docker被认为是非开发的吗?我认为系统管理员不一定比开发人员更了解 docker。我认为开发运维问题与 SO 相关。
标签: ubuntu docker boot2docker