title: How to add jupyter to rocker image?
body: <p>I'm new to <code>docker</code> and I'm trying to add <code>jupyter</code> and <code>python</code> to my <code>docker</code> image based on <a href="https://github.com/rocker-org/rocker-versioned/blob/master/rstudio/3.5.2/Dockerfile" rel="nofollow noreferrer"><code>Rocker</code></a> (I want to have both <code>python</code> and <code>R</code>). I was able to install <code>python3</code>and <code>jupyter</code> with the dependencies. Image was created successfully. After running container I have access to <code>RStudio server</code> on port <code>7878</code>, but unfortunately on port <code>8888</code> <code>jupyter</code> is not working. </p>
  
  <p>My <code>Dockerfile</code> looks like this :</p>
  
  <pre><code>FROM rocker/rstudio:3.5.0
  
  # Basic dependencies
  RUN apt-get update &amp;&amp; apt-get install -y \
        libcurl4-gnutls-dev \
        libssl-dev \
        libpng-dev \
        vim \
        nano \
        libxml2 \
        libxml2-dev \
        curl \
        gnupg2 \
        build-essential libssl-dev \
        libpq-dev \
        ssh
  SHELL ["/bin/bash", "-c"]
  
  # Install python3 and pip3
  RUN apt-get update &amp;&amp; apt-get install -y python3 \
      python3-pip \
      build-essential
  
  # Install jupyter
  RUN pip3 install jupyter
  
  EXPOSE 8888
  RUN mkdir /notebooks
  CMD jupyter notebook --no-browser --ip 0.0.0.0 --allow-root --port 8888 /notebooks
  
  CMD ["/init"]
  </code></pre>
  
  <p>Build and run:</p>
  
  <pre><code>docker build -f Dockerfile -t user/my_docer:1.0 .
  docker run -d --name my_docker -p 8787:8787 -p 8888:8888 -v `pwd`:/mnt user/my_docer:1.0
  </code></pre>