title: Bash command to return a free port
body: <p>As part of a build pipeline I would like to start containers with a free port. </p>
  
  <p>Looking for something like this:</p>
  
  <pre><code>docker run --name frontend -p $(gimme-a-free-port):80 frontend:latest
  </code></pre>