AWS AmazonECS documentation change
Summary
Updated documentation to reflect Amazon Linux 2023 instead of Amazon Linux 2, clarified container image terminology, added ARM platform note, and removed docker-machine IP instructions
Security assessment
Changes primarily update OS references (AL2 -> AL2023) and terminology (Docker images -> container images). The ARM platform note improves compatibility documentation. Removal of docker-machine IP instructions appears to be cleanup of outdated methods. No security vulnerabilities, patches, or security feature enhancements are mentioned in the changes.
Diff
diff --git a/AmazonECS/latest/developerguide/create-container-image.md b/AmazonECS/latest/developerguide/create-container-image.md index 2c089ff8d..1f0900fd9 100644 --- a//AmazonECS/latest/developerguide/create-container-image.md +++ b//AmazonECS/latest/developerguide/create-container-image.md @@ -11 +11,3 @@ Amazon ECS uses Docker images in task definitions to launch containers. Docker i -The purpose of the steps outlined here is to walk you through creating your first Docker image and pushing that image to Amazon ECR, which is a container registry, for use in your Amazon ECS task definitions. This walkthrough assumes that you possess a basic understanding of what Docker is and how it works. For more information about Docker, see [What is Docker?](http://aws.amazon.com/docker/) and the [Docker documentation](https://docs.docker.com/get-started/docker-overview/). +Amazon ECS schedules containerized applications on to container instances or on to AWS Fargate. Containerized applications are packaged as container images. This example creates a container image for a web server. + +You can create your first Docker image, and then push that image to Amazon ECR, which is a container registry, for use in your Amazon ECS task definitions. This walkthrough assumes that you possess a basic understanding of what Docker is and how it works. For more information about Docker, see [What is Docker?](http://aws.amazon.com/docker/) and the [Docker documentation](https://docs.docker.com/get-started/docker-overview/). @@ -21 +23 @@ Before you begin, ensure the following prerequisites are met. - * You have Docker installed. For Docker installation steps for Amazon Linux 2, see Installing Docker on AL2023. For all other operating systems, see the Docker documentation at [Docker Desktop overview](https://docs.docker.com/desktop/). + * You have Docker installed. For Docker installation steps for Amazon Linux 2023, see Installing Docker on AL2023. For all other operating systems, see the Docker documentation at [Docker Desktop overview](https://docs.docker.com/desktop/). @@ -28 +30 @@ Before you begin, ensure the following prerequisites are met. -If you don't have or need a local development environment and you prefer to use an Amazon EC2 instance to use Docker, we provide the following steps to launch an Amazon EC2 instance using Amazon Linux 2 and install Docker Engine and the Docker CLI. +If you don't have or need a local development environment and you prefer to use an Amazon EC2 instance to use Docker, we provide the following steps to launch an Amazon EC2 instance using Amazon Linux 2023 and install Docker Engine and the Docker CLI. @@ -75 +77 @@ In some cases, you may need to reboot your instance to provide permissions for t -Amazon ECS task definitions use Docker images to launch containers on the container instances in your clusters. In this section, you create a Docker image of a simple web application, and test it on your local system or Amazon EC2 instance, and then push the image to the Amazon ECR container registry so you can use it in an Amazon ECS task definition. +Amazon ECS task definitions use container images to launch containers on the container instances in your clusters. In this section, you create a Docker image of a simple web application, and test it on your local system or Amazon EC2 instance, and then push the image to the Amazon ECR container registry so you can use it in an Amazon ECS task definition. @@ -104 +106 @@ Amazon ECS task definitions use Docker images to launch containers on the contai -This Dockerfile uses the public Amazon Linux 2 image hosted on Amazon ECR Public. The `RUN` instructions update the package caches, installs some software packages for the web server, and then write the "Hello World!" content to the web servers document root. The `EXPOSE` instruction means that port 80 on the container is the one that is listening, and the `CMD` instruction starts the web server. +This Dockerfile uses the public Amazon Linux 2023 image hosted on Amazon ECR Public. The `RUN` instructions update the package caches, installs some software packages for the web server, and then write the "Hello World!" content to the web servers document root. The `EXPOSE` instruction means that port 80 on the container is the one that is listening, and the `CMD` instruction starts the web server. @@ -112 +114 @@ Some versions of Docker may require the full path to your Dockerfile in the foll -If you run the command on MacOS M1/Mx-chip, Use the --platform option "--platform linux/amd64". +If you run the command an ARM based system, such as [Apple Silicon](https://support.apple.com/en-gb/116943), use the --platform option "--platform linux/amd64". @@ -139,4 +140,0 @@ Output from the Apache web server is displayed in the terminal window. You can i - * If you are using **docker-machine** on a Windows or Mac computer, find the IP address of the VirtualBox VM that is hosting Docker with the **docker-machine ip** command, substituting `machine-name` with the name of the docker machine you are using. - - docker-machine ip machine-name - @@ -152 +150 @@ You should see a web page with your "Hello World!" statement. -Amazon ECR is a managed AWS Docker registry service. You can use the Docker CLI to push, pull, and manage images in your Amazon ECR repositories. For Amazon ECR product details, featured customer case studies, and FAQs, see the [Amazon Elastic Container Registry product detail pages](http://aws.amazon.com/ecr). +Amazon ECR is a managed AWS managed image registry service. You can use the Docker CLI to push, pull, and manage images in your Amazon ECR repositories. For Amazon ECR product details, featured customer case studies, and FAQs, see the [Amazon Elastic Container Registry product detail pages](http://aws.amazon.com/ecr).