I have a docker-compose.yml file which starts logspout container and other containers in my application. On doing docker-compose up, in some cases log files are not getting created for some containers.
When log files are not getting created, I saw in logspout logs that container log is getting created in pump.Run but not getting started. Eg: In following case for 2961bd4368e6, we see there is create log but no start log
I have a docker-compose.yml file which starts logspout container and other containers in my application. On
doing docker-compose up
, in some cases log files are not getting created for some containers.When log files are not getting created, I saw in logspout logs that container log is getting created in
pump.Run
but not getting started. Eg: In following case for2961bd4368e6
, we see there iscreate
log but nostart
logRestarting the container for which logs are missing using
sudo -E docker-compose -f <compose-file-path> restart <container-name>
fixes the issue.How to ensure that log files are not missing when doing docker-compose up?