configured logging driver does not support reading : Docker

palani.p picture palani.p · Sep 14, 2018 · Viewed 23.3k times · Source

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.

Answer

Light.G picture Light.G · Sep 29, 2018

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.