Occasionally, you might need to update the Amazon ECS container agent to pick up bug fixes and new features. Updating the Amazon ECS container agent does not interrupt running tasks or services on the container instance. The process for updating the agent differs depending on whether your container instance was launched with an Amazon ECS-optimized AMI or another operating system.
Note
Agent updates do not apply to Windows container instances. We recommend that you launch new container instances to update the agent version in your Windows clusters.
Checking the Amazon ECS container agent
version
You can check the version of the container agent that is running on your container instances to see if you need to update it. The container instance view in the Amazon ECS console provides the agent version. Use the following procedure to check your agent version.
Open the console at https://console.aws.amazon.com/ecs/v2
. -
From the navigation bar, choose the Region where your external instance is registered.
-
In the navigation pane, choose Clusters and select the cluster that hosts the external instance.
-
On the Cluster :
name
page, choose the Infrastructure tab. -
Under Container instances, note the Agent version column for your container instances. If the container instance does not contain the latest version of the container agent, the console alerts you with a message and flags the outdated agent version.
If your agent version is outdated, you can update your container agent with the following procedures:
-
If your container instance is running an Amazon ECS-optimized AMI, see Updating the Amazon ECS container agent on an Amazon ECS-optimized AMI.
-
If your container instance is not running an Amazon ECS-optimized AMI, see Manually updating the Amazon ECS container agent (for non-Amazon ECS-Optimized AMIs).
Important
To update the Amazon ECS agent version from versions before v1.0.0 on your Amazon ECS-optimized AMI, we recommend that you terminate your current container instance and launch a new instance with the most recent AMI version. Any container instances that use a preview version should be retired and replaced with the most recent AMI. For more information, see Launching an Amazon ECS Linux container instance.
-