How to capture docker-compose run logs in a cron job? -




i run docker-compose cronjob follows:

05 16 * * * cd /home/apps; docker-compose run service1 sh ./update_all_all.sh /data >>/var/log/works.log 

i'd capture outputs run works.log, runs, no works.log file, idea how make works?

thanks,

i have solved problem of capturing compose logs following shell script:

docker-compose -d docker-compose logs -t -f --no-color > compose.log & # maybe more before cleaning up... docker-compose stop 




wiki

Comments

Popular posts from this blog

firebase - How to wait value in Ionic 2 -

Jenkins: find build number for git commit -

python - Minimize function with Scipy minimize -