Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (5.6k points)

I getting errors while I try to see logs from my docker container in ECS.

This is the error I'm getting

FATA[0000] Error executing 'logs': Failed to get log configuration: Container 'my-container': Must specify log driver as awslogs 

How to resolve it?

1 Answer

0 votes
by (12.4k points)

Here you need to open the docker daemon file in "/etc/docker/daemon.json" and then add log driver:

{

     "log-driver": "awslogs"

  }

and then restart the docker with the command 

sudo systemctl restart docker

Interested to know more about AWS? Come & join AWS Certification.

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...