GroundWork recommends keeping some container logs on disk for support and troubleshooting purposes. The default settings for Docker retain too much data to be useful, so we recommend making the following changes on production systems.
Add or edit the docker daemon logging control file
Log in as
rootto your GroundWork server and edit the file
This file may or may not exist, depending on your Docker version and package.
Add (or edit) the log driver section to look like this:
If the file does not exist, just create it with this content. These settings will keep a maximum of 30M of log data for each container. For reference see: https://docs.docker.com/config/containers/logging/configure/
- For this setting to take effect, you must stop and restart the docker daemon, or reboot your host. If you are already running GroundWork and are adding this setting, your logs will not be truncated until the containers are re-created, which will occur at your next upgrade or re-install.