I have a small piece of code for which I've constructed a Docker container, and the status indicates that it's up and running. To print the data, I used some print() commands within the code. I was curious about the output of the print command.
I've seen Docker logs for this. However, it does not appear to be operating because no logs are displayed. What is the best way to check logs?
$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a3b3fd261b94 firstdocker "python3 ./my_script…" 22 minutes ago Up 22 minutes elegant_darwin
$ sudo docker logs a3b3fd261b94
<shows nothing>