title: How to see the logs of a docker container
body: <p>I have a simple code for which I have created a docker container and the status shows it running fine. Inside the code I have used some <code>print()</code> commands to print the data. I wanted to see that print command output.</p>
  
  <p>For this I have seen docker logs . But it seems not to be working as it shows no logs. How to check logs.?</p>
  
  <pre><code> $ sudo docker ps
  CONTAINER ID        IMAGE                        COMMAND                  CREATED             STATUS              PORTS                                            NAMES
  a3b3fd261b94        myfirstdocker                     "python3 ./my_script…"   22 minutes ago      Up 22 minutes                                                        elegant_darwin
  
   $ sudo docker logs a3b3fd261b94
   &lt;shows nothing&gt;
  </code></pre>