Listing the running containers on the cluster

To list the running containers on the cluster, run the following command:

ecs-cli compose --project-name hello-world service ps

The one Docker container gets listed as shown in the following screenshot. The container's State, Ports, and Task Definition also get listed:

Get Amazon Fargate Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.