How do I view output of python script when running from docker on Amazon Linux

I’m currently trying to setup a flask application hosted by an nginx server through docker on a machine running Amazon Linux 2.

Basically I’m just trying to see the simple output of my python script when I trigger it through nginx on my running docker image.

I’ve previously worked on an Ubuntu machine and I could simply see the logs live with the command:

tail -f /var/log/syslog

but with Amazon linux or Linux distros in general I believe all logging is done through journalctl, and I can’t seem to see any of my python script output when I search the main journalctl logs with the command:

sudo journalctl -f

Could anyone point me in the right direction on where my python script’s output is going?

Source: Docker Questions