How to set up S3-related volume in Docker Cloud with AWS?

I am starting my game! webapp with Docker Cloud (you can also use Rancher) and AWS, and I would like to save all the logs in S3 (via volume). Any ideas on how I could achieve this with minimal effort?

+5
source share
1 answer

Use docker volumes to store logs on the host system.

Try S3 aws-cli sync your local directory with S3 Bucket

 aws s3 sync /var/logs/container-logs s3://bucket/ 

create a cron to run it every minute or so.

Link: s3 aws-cli

+2
source

All Articles