是否有与 AWS EC2 AMI 相似(或相同)的 docker 图像?

Is there a docker image which is similar (or the same) as AWS EC2 AMI?

我想测试一些我稍后使用默认 AMI 部署到 Amazon AWS 的东西。是否有我可以测试的 Docker 映像,它与 Amazon base AMI 具有相同的 "content"?

亚马逊现在有官方容器镜像

https://hub.docker.com/_/amazonlinux/

→ docker run -ti amazonlinux bash
Unable to find image 'amazonlinux:latest' locally
latest: Pulling from library/amazonlinux
c9141092a50d: Pull complete 
Digest: sha256:2010c88ac1e7c118d61793eec71dcfe0e276d72b38dd86bd3e49da1f8c48bf54
Status: Downloaded newer image for amazonlinux:latest
bash-4.2# yum search aws-apitools-ec2
Loaded plugins: ovl, priorities
amzn-main/latest                                                                                 | 2.1 kB     00:00     
amzn-main/latest/group                                                                           |  35 kB     00:01     
amzn-main/latest/primary_db                                                                      | 3.5 MB     00:22     
amzn-updates/latest                                                                              | 2.3 kB     00:00     
amzn-updates/latest/group                                                                        |  35 kB     00:00     
amzn-updates/latest/updateinfo                                                                   | 362 kB     00:01     
amzn-updates/latest/primary_db                                                                   | 498 kB     00:03     
Loaded plugins: ovl, priorities
============================================ N/S matched: aws-apitools-ec2 =============================================
aws-apitools-ec2.noarch : The API tools serve as the client interface to the Amazon EC2 web service. Use these tools to
                        : register and launch instances, manipulate security groups, and more.

如果您使用

创建主机
docker-machine create --driver amazonec2 myhost

它将使用以下基础映像 ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-20160516.1。这是截至今天。他们不断更新它。 ami 取决于您所在的 AWS 区域。在我的例子中 (ap-southeast-2) 它是 ami-f4361997.

我相信可以在这里找到给定版本 ubuntu 的 ami。 https://cloud-images.ubuntu.com/locator/ec2/ 虽然他们只列出了最新的 ami,而 AWS 落后了几个月(20160516 对 20160830)。