Storing Docker logs in CloudWatch

Jakub Wietrzyk
4 min readApr 2, 2020

So you have your EC2 Instance running docker containers. You’re probably using soon-to-be-deprecated docker-compose or not-so-old docker stack as container orchestration software (I know there are better solutions).

In this article I’ll show you what you need to do to store Docker container logs in AWS Cloud Watch Logs service.

Why?

If your software is running couple containers for days and those containers output something from time to time soon you’ll face those problems:

  • accessing long list…

--

--

Jakub Wietrzyk

IT enthusiast and practitioner. One of the founders of wfirma.pl — leading accounting SaaS in Poland.