title: How to start docker container with dynamic url
body: <p>My requirement is as follows:</p>
  <ol>
  <li>Developer creates a branch in Jenkins. Lets say branch name is &quot;mystory-101&quot;</li>
  <li>Now developer push the code to this branch</li>
  <li>Jenkins job starts as soon as commit is pushed to the branch &quot;mystory-101&quot; and create a new docker image for this branch if not created already</li>
  <li>My application is Node.js based app, so docker container starts with node.js and deployes the code from the branch &quot;mystory-101&quot;</li>
  <li>After the code is deployed and node.js is running, then I would also like this node.js app to be accessible via the URL : <a href="https://mystory-101.mycompany.com" rel="nofollow noreferrer">https://mystory-101.mycompany.com</a></li>
  </ol>
  <p>For this purpose I was reading this <a href="https://medium.com/swlh/ci-cd-pipeline-using-jenkins-dynamic-nodes-86ea854ff7a7" rel="nofollow noreferrer">https://medium.com/swlh/ci-cd-pipeline-using-jenkins-dynamic-nodes-86ea854ff7a7</a>
  but I am not sure how to achive step #5. Can you please advice how to achive this autometically?</p>