Ok, I am firing off some docker run commands via subprocess calls (in a GUI). The call looks like this:
import subprocess
a = subprocess.run(args, stdout=subprocess.PIPE)
output = a.stdout.decode().split("\n")
The process living in the docker container would log to the stdout and I thought I could then fetch my logging messages. I am using the docker run -a command, as in
/usr/bin/docker run --rm -a stdout xxxx/pyrisk:latest python prices.py