I am running my docker container in AWS ECS. When i try to execute the below command to read the logs from container, i am facing the below error.
command: docker logs -f "Container ID"
Error response from daemon: configured logging driver does not support reading.
Any feasible solutions are welcome.
According to information commented by David Maze, you must have your container run with a awslogs log driver.
Here is the setting introduction.
After changing log driver to json-file,
you could get log by executing docker logs container-id/name
.
But still note this:
If using the Fargate launch type, the only supported value is awslogs.