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 AWS using Amazon ECS. For more information, see Using Amazon ECR images with Amazon ECS.
The Amazon Linux container image is available on Amazon ECR Public and on Docker Hub. For support for the Amazon Linux container image, go to the AWS developer forums.
To pull the Amazon Linux container image from Amazon ECR PublicAuthenticate your Docker client to the Amazon Linux Public registry. Authentication tokens are valid for 12 hours. For more information, see Private registry authentication in Amazon ECR.
NoteThe ecr-public commands are available in the AWS CLI starting with version 1.18.1.187
, however we recommend using the latest version of the AWS CLI. For more information, see Installing the AWS Command Line Interface in the AWS Command Line Interface User Guide.
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws
The output is as follows:
Login succeeded
Pull the Amazon Linux container image using the docker pull command. To view the Amazon Linux container image on the Amazon ECR Public Gallery, see Amazon ECR Public Gallery - amazonlinux.
docker pull public.ecr.aws/amazonlinux/amazonlinux:latest
(Optional) Run the container locally.
docker run -it public.ecr.aws/amazonlinux/amazonlinux /bin/bash
Pull the Amazon Linux container image using the docker pull command.
docker pull amazonlinux
(Optional) Run the container locally.
docker run -it amazonlinux:latest /bin/bash
Pulling an image
Deleting an image
Did this page help you? - Yes
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Did this page help you? - No
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4