Docker Compose and OpenShift produce output in the current terminal at runtime. These are ephemeral and it also can be difficult to understand those errors.
In order to save logs, you need Docker Containers to store them. Using Graylog will handle those tasks. The following Docker Compose file shows an example configuration for Graylog.
This will send all output that occurs on the docker.sock to an instance of Graylog and will make the logs available, so that you can search for specific entries and archives them.