title: How to run a docker container if not already running
body: <p>I need to run a docker container only if its not already running. Given this command. How would I run it only if it does not exists.</p>
  
  <pre><code>docker run --name nginx -d nginx
  </code></pre>
  
  <p>I am open to any script or language.</p>