title: How to install jupyter/docker-stacks with python 2.x
body: <p>I want to install one of the jupyter containers with python 2.X using docker-stacks.</p>
  
  <p>The documentation at GitHub for jupyter/docker-stacks say:</p>
  
  <blockquote>
    <p>Python 2.x was removed from all images on August 10th, 2017, starting in tag cc9feab481f7. If you wish to continue using Python 2.x, pin to tag 82b978b3ceeb. </p>
  </blockquote>
  
  <p>See:
  <a href="https://github.com/jupyter/docker-stacks" rel="nofollow noreferrer">https://github.com/jupyter/docker-stacks</a></p>
  
  <p>I assume you run this as follows to, say for example, install minimal-notebook:</p>
  
  <pre><code>docker run -it --rm -p 8888:8888 jupyter/minimal-notebook:82b978b3ceeb
  </code></pre>
  
  <p>But after running I find that python 3.x was installed:</p>
  
  <p>sys.version_info(major=3, minor=6, micro=2, releaselevel='final', serial=0)</p>
  
  <p>Here's the output of the 'docker run' command:</p>
  
  <pre><code>$ docker run -it --rm -p 8888:8888 jupyter/minimal-notebook:82b978b3ceeb
  /usr/local/bin/start.sh: line 48: [: missing `]'
  /usr/local/bin/start.sh: line 48: : command not found
  Execute the command
  [I 20:55:49.950 NotebookApp] Writing notebook server cookie secret to /home/jovyan/.local/share/jupyter/runtime/notebook_cookie_secret
  [W 20:55:49.979 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended.
  [I 20:55:50.010 NotebookApp] JupyterLab alpha preview extension loaded from /opt/conda/lib/python3.6/site-packages/jupyterlab
  JupyterLab v0.24.1
  Known labextensions:
  [I 20:55:50.013 NotebookApp] Running the core application with no additional extensions or settings
  [I 20:55:50.016 NotebookApp] Serving notebooks from local directory: /home/jovyan
  [I 20:55:50.016 NotebookApp] 0 active kernels 
  [I 20:55:50.017 NotebookApp] The Jupyter Notebook is running at: http://[all ip addresses on your system]:8888/?token=f09a12bf53902cb20aca2f1924011e1e80d51243cc10a390
  [I 20:55:50.017 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
  [C 20:55:50.017 NotebookApp] 
  
      Copy/paste this URL into your browser when you connect for the first time,
      to login with a token:
          http://localhost:8888/?token=f09a12bf53902cb20aca2f1924011e1e80d51243cc10a390
  </code></pre>