简体   繁体   中英

How do I download old official container images of Ubuntu?

When I pulled ubuntu:18.04 official image from docker hub, I got Ubuntu 18.04.4 image, but I want Ubuntu 18.04 base image. What is the way to download older official images like 18.04/18.04.1/18.04.2/18.04.3?

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

Ultimately, you want to 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 of the file that would contain that info.

I am able to download container image corresponding to Ubuntu-18.04 without any updates, by following below stesp.

  1. Figured out that Ubuntu-18.04 was released on 26th Apr 2018 from http://old-releases.ubuntu.com/releases/bionic/ . Just checked the timestamp of ubuntu-18.04-server-amd64.iso file.

  2. Sorted ubuntu images on docker hub by name and figured out container image name corresponding to 18.04 GA is bionic- 20180426 based on GA date of 18.04 release. Refer this link - https://hub.docker.com/_/ubuntu?tab=tags&page=2&ordering=-name .

  3. Pulled ubuntu:bionic-20180426 image, created an instance out of it and checked contents of lsb-release file.

    root@e7967ee0869d:/# cat /etc/lsb-release | grep DESCRIPTION

    DISTRIB_DESCRIPTION="Ubuntu 18.04 LTS"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM