Pulling the Amazon Linux container image - Amazon ECR
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Pulling the Amazon Linux container image

The Amazon Linux container image is built from the same software components that are included in the Amazon Linux AMI. The Amazon Linux container image is available for use in any environment as a base image for Docker workloads. If you use the Amazon Linux AMI for applications in Amazon EC2, you can containerize your applications with the Amazon Linux container image.

You can use the Amazon Linux container image in your local development environment and then push your application to Amazon using Amazon ECS. For more information, see Using Amazon ECR images with Amazon ECS.

The Amazon Linux container image is available on Docker Hub. For support for the Amazon Linux container image, go to the Amazon developer forums.

To pull the Amazon Linux container image from Docker Hub
  1. Pull the Amazon Linux container image using the docker pull command.

    docker pull amazonlinux
  2. (Optional) Run the container locally.

    docker run -it amazonlinux:latest /bin/bash