|
1 | 1 | # Amazon Linux container images
|
2 | 2 |
|
3 |
| -This repository contains the base container images for Amazon Linux on [Docker Hub](https://hub.docker.com/_/amazonlinux/) and [Amazon Elastic Container Registry](https://docs.aws.amazon.com/AmazonECR/latest/userguide/amazon_linux_container_image.html). |
| 3 | +This repository contains the base container images for Amazon Linux on |
| 4 | +[Docker Hub][dockerhub] and [Amazon Elastic Container Registry][ecr]. |
4 | 5 |
|
5 |
| -This is more of an *artifact store* than a Git repository, for reasons explained later. Please note that **branches other than `master` are regularly force-pushed, and content may disappear without warning**. For more reliable sources of Amazon Linux container images, use the [Amazon Linux on-premises image download site](https://cdn.amazonlinux.com/os-images/latest/), Docker Hub, and Amazon ECR. |
| 6 | +This is more of an *artifact store* than a Git repository, for reasons |
| 7 | +explained later. Please note that **branches other than `master` are |
| 8 | +regularly force-pushed, and content may disappear without warning**. For |
| 9 | +more reliable sources of Amazon Linux container images, use the |
| 10 | +[Amazon Linux on-premises image download site][onprem], Docker Hub, or |
| 11 | +Amazon ECR. |
6 | 12 |
|
7 | 13 | ## What we're doing here
|
8 | 14 |
|
9 |
| -The [Docker Official Images program](https://docs.docker.com/docker-hub/official_images/) produces the top-level images available on Docker Hub, including the base OS images that serve as a starting point for most Docker users. |
10 |
| - |
11 |
| -The images are maintained in the open. Image generation starts from a file in [docker-library/official-images.git](https://github.com/docker-library/official-images) named [library/amazonlinux](https://github.com/docker-library/official-images/blob/master/library/amazonlinux). This file is machine-readable and connects image tags to a Git repository and commit. |
12 |
| - |
13 |
| -During image build, the build system clones the referenced Git repository at a given commit and runs `docker build` in that directory. For application images, this usually involves downloading and installing software. For base OS images, this means adding the contents of a tarball as a single layer: |
14 |
| - |
15 |
| -``` |
16 |
| -FROM scratch |
17 |
| -ADD amzn2-container-raw-2.0.yyyymmdd-x86_64.tar.xz / |
18 |
| -CMD ["/bin/bash"] |
19 |
| -``` |
20 |
| - |
21 |
| -Committed alongside the Dockerfile is the tarball, which balloons the repository size. Thus, we force-push branches that contain the tarballs. |
22 |
| - |
23 |
| -Although we force-push the files away, the older versions of our images remain present on Docker Hub and Amazon ECR. |
24 |
| - |
25 |
| -We use [a script to generate the other branches of this repository](update-script/update.sh). |
| 15 | +The [Docker Official Images program][doi] produces the top-level images |
| 16 | +available on Docker Hub, including the base OS images that serve as a |
| 17 | +starting point for most Docker users. |
| 18 | + |
| 19 | +The images are maintained in the open. Image generation starts from a |
| 20 | +file in [docker-library/official-images.git][doi-git] named |
| 21 | +[library/amazonlinux][doi-git-al]. This file is machine-readable and |
| 22 | +connects image tags to a Git repository and commit. |
| 23 | + |
| 24 | +During image build, the build system clones the referenced Git |
| 25 | +repository at a given commit and runs `docker build` in that directory. |
| 26 | +For application images, this usually involves downloading and installing |
| 27 | +software. For base OS images, this means adding the contents of a |
| 28 | +tarball as a single layer. |
| 29 | + |
| 30 | +## Distribution SLAs |
| 31 | + |
| 32 | +Amazon Linux is able to update our first-party sources (ECR) same-day as |
| 33 | +the associated AMI release. To reduce the operational load on the Docker |
| 34 | +Official Images program, we batch our OS releases and submit them |
| 35 | +weekly. |
| 36 | + |
| 37 | +[dockerhub]: https://hub.docker.com/_/amazonlinux/ |
| 38 | +[ecr]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/amazon_linux_container_image.html |
| 39 | +[onprem]: https://cdn.amazonlinux.com/os-images/latest/ |
| 40 | +[doi]: https://docs.docker.com/docker-hub/official_images/ |
| 41 | +[doi-git]: https://github.com/docker-library/official-images |
| 42 | +[doi-git-al]: https://github.com/docker-library/official-images/blob/master/library/amazonlinux |
0 commit comments