如何下载 Ubuntu 的旧官方容器镜像?

How do I download old official container images of Ubuntu?

当我从 docker hub 拉取 ubuntu:18.04 官方镜像时,我得到了 Ubuntu 18.04.4 镜像,但我想要Ubuntu 18.04 基本图像。 18.04/18.04.1/18.04.2/18.04.3等老版本官方镜像有什么下载方法?

root@50d9e7e557b8:/BUILD#猫/etc/lsb-release| grep 说明 DISTRIB_DESCRIPTION="Ubuntu 18.04.4 LTS"

最终,您想要 pull an image by digest, not by tag. However, I'm not sure how you'd figure out which digest you want. This is the commit history 包含该信息的文件。

我可以按照以下步骤下载对应于 Ubuntu-18.04 的容器映像,无需任何更新。

  1. 发现 Ubuntu-18.04 于 2018 年 4 月 26 日从 http://old-releases.ubuntu.com/releases/bionic/。刚刚检查了 ubuntu-18.04-server-amd64.iso 文件的时间戳。

  2. 在 docker hub 上按名称对 ubuntu 图像进行排序,并找出对应于 18.04 GA 的容器图像名称是 bionic-20180426基于 18.04 发布的 GA 日期。参考这个 link - https://hub.docker.com/_/ubuntu?tab=tags&page=2&ordering=-name.

  3. 拉取 ubuntu:bionic-20180426 图像,从中创建一个实例并检查 lsb-release 文件的内容。

    root@e7967ee0869d:/#猫/etc/lsb-release | grep 描述

    DISTRIB_DESCRIPTION="Ubuntu 18.04 LTS"