title: How to extend existing docker container?
body: <p>The tensorflow docker container is available at <a href="https://hub.docker.com/r/tensorflow/tensorflow/" rel="noreferrer">https://hub.docker.com/r/tensorflow/tensorflow/</a> to extend this container with additional libraries such as <code>requests</code> I'm aware of two options.</p>
  
  <ol>
  <li>Run the container and run <code>pip install requests</code></li>
  <li>Append <code>pip install requests</code> to the <code>dockerFile</code> that builds this container </li>
  </ol>
  
  <p>Is there an alternative option ? Something like creating the <code>tensorflow/tensorflow</code> container from a dockerFile and then installing <code>requests</code> on this container.</p>
  
  <p>Reading <a href="https://stackoverflow.com/questions/22905803/how-to-extend-an-existing-docker-image">How to extend an existing docker image?</a> to accomplish this create a dockerFile with these contents ? :</p>
  
  <pre><code>FROM tensorflow/tensorflow
  RUN pip install requests
  </code></pre>