title: View dockerised JupyterLab in iframe on same server as container
body: <p>I need to embed jupyter-lab in an iframe on the same server that I have my jupyter-lab docker containers on. 
  I'm trying my best to wrap my head around how to do it. 
  I've created a docker image and I create a new container like so:</p>
  
  <pre><code>docker run -p 0:9999 --name container_name jupyter-labs .
  </code></pre>
  
  <p>Then I get the port that was assigned with </p>
  
  <pre><code>docker ps -a
  </code></pre>
  
  <p>I'm not sure where to go from here.
  I'm trying to get it working doing something like this</p>
  
  <pre><code>ssh -L 8858:localhost:49160 root@x.x.x.x
  </code></pre>
  
  <p>and then setting the src of my iframe to:</p>
  
  <pre><code>&lt;iframe src="http://localhost:8858/" width="100%" height="600"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>A lot of this I have learned in the past week or 2, ports, shh etc. So I am not sure that if this is even possible. </p>
  
  <p>Any help would be greatly appreciated.</p>