【问题标题】:Ubuntu Docker image broken out of the box?开箱即用的 Ubuntu Docker 映像?
【发布时间】: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


【解决方案1】:

我认为这通常是旧版 Ubuntu 的问题,而不仅限于 Docker。

试试ubuntu:14.04.2

【讨论】:

    【解决方案2】:

    最终唯一有效的方法是,在尝试使用 apt-key adv 手动设置 GPG 密钥无济于事后,用 this tool 生成的条目覆盖 apt sources.list 文件。

    需要明确的是,我仍然收到有关某些软件包无法验证的警告,但至少在更新之后,我所依赖的软件包的实际安装成功了。所以这并不是一个真正的解决方案,更像是一个 hack。

    【讨论】:

      猜你喜欢
      • 2013-10-26
      • 2017-04-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-01-16
      • 2013-08-29
      • 2023-03-18
      • 1970-01-01
      相关资源
      最近更新 更多