Listing the container logs
To list the container logs, copy the task ID (the task ID is the container name substring
before the /
) from the container name, and run the following command:
ecs-cli logs --task-id 0c23d765-88c5-46cd-a317-9db243590c89 –follow
The container logs get displayed as shown in the following screenshot:
![](https://static.packt-cdn.com/products/9781789345018/graphics/3bc3a65c-a634-4c6a-a1a2-a33f86b1596b.png)