开箱即用的 Ubuntu Docker 镜像?

标签 ubuntu docker boot2docker

是否应该开箱即用?

$ 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/

相关文章:

ubuntu - 在 Ubuntu 18.04 和 Ubuntu 20.04 中找不到核心转储文件

ubuntu - 无法找到软件包 gluu-server

docker - 使用可选 HTTP 模块的 nginx 编译选项创建 docker 镜像

docker - 什么是服务器错误:获取图像层时状态为0

docker - 为什么我从 boot2docker 收到 'could not resolve "registry.giantswarm.io"' 错误?

ubuntu - apt-get 安装中使用的 -y 标志是什么?

ubuntu - 如何在 Ubuntu 14 中安装最新的生产级 Kubernetes

docker - Traefik可以与docker-compose连接,但不能与Windows上的swarm服务连接

java - Docker 文件 - Master jenkins - hudson.util.HudsonFailedToLoad

java - docker 上的 cucumber 测试不会在集成测试阶段触发