Search code examples
imageamazon-web-servicesdockeramazon-ami

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


I want to test something which I later deploy to Amazon AWS using the default AMI. Is there a Docker image which I can test with, that has the same "content" as Amazon base AMI?


Solution

  • Amazon now have an official container image

    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.