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.
NoteAgent 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 versionYou 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:
ImportantTo 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.
You can also use the to check the agent Amazon ECS container agent introspection API version from the container instance itself. For more information, see Amazon ECS container introspection.
To check if your Amazon ECS container agent is running the latest version with the introspection APILog in to your container instance via SSH.
Query the introspection API.
[ec2-user ~]$
curl -s 127.0.0.1:51678/v1/metadata | python3 -mjson.tool
Note
The introspection API added Version
information in the version v1.0.0 of the Amazon ECS container agent. If Version
is not present when querying the introspection API, or the introspection API is not present in your agent at all, then the version you are running is v0.0.3 or earlier. You should update your version.
Configuring pre-initialized instances for your Auto Scaling group
Updating the Amazon ECS container agent on an Amazon ECS-optimized AMI
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