Amazon ECS agent
As explained in the previous chapter, the ECS container agent is responsible for communicating between the Amazon ECS cluster and the Amazon EC2 instance. The ECS agent sends information about the currently running tasks and resource utilization of containers from the container instance to the Amazon ECS cluster. The ECS agent also receives the request from the Amazon ECS cluster to start and stop tasks:
Figure 4.1 – ECS agent two-way communication with an ECS cluster
ECS Agent runs as a Windows service on the Windows container instance, and it communicates with the Docker daemon through a named pipe at \\.\pipe\docker_engine
. A named pipe is a mechanism for facilitating communication between two processes using shared memory.
You can use PipeList from Windows System Internals to list the Windows opened pipes:
Figure 4.2 – Listing pipelines with Pipelist
Assuming we are launching a new Amazon...