Docker Community Forums

Share and learn in the Docker community.

Strategy for log rotation using docker-machine


(Martin Aspeli) #1

I’m using docker-machine on OSX to run a local web server. It has nginx in one image, as well as owncloud and mysql, all using the official images.

owncloud and nginx log quite a lot, so I want to set up log rotation.

It’s not clear to me where the log files are stored (Mac? VirtualBox image?) and where to set up log rotation for them: Mac? VirtualBox? Someplace else?


(Mackenzie Burnett) #2

The logs are stored within a Linux partition on the virtual drive attached to the VirtualBox VM.

This article has what you need and also, as mentioned in that article, as of Docker 1.8 there are some new options for log output.