如何从docker集装箱内使用jupyter笔记本?

我知道有基本的图像来处理这个,但我的docker图像需要包括在下面的Dockerfile中的一切:

FROM debian:8.5 MAINTAINER Kamil Kwiek <kamil.kwiek@continuum.io> ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 RUN apt-get update -yqq --fix-missing && apt-get install -yqq wget bzip2 ca-certificates \ libglib2.0-0 libxext6 libsm6 libxrender1 \ git mercurial subversion RUN echo 'export PATH=/opt/conda/bin:$PATH' > /etc/profile.d/conda.sh && \ wget --quiet https://repo.continuum.io/archive/Anaconda2-4.4.0-Linux-x86_64.sh -O ~/anaconda.sh && \ /bin/bash ~/anaconda.sh -b -p /opt/conda && \ rm ~/anaconda.sh RUN apt-get install -yqq curl grep sed dpkg && \ TINI_VERSION=`curl https://github.com/krallin/tini/releases/latest | grep -o "/v.*\"" | sed 's:^..\(.*\).$:\1:'` && \ curl -L "https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini_${TINI_VERSION}.deb" > tini.deb && \ dpkg -i tini.deb && \ rm tini.deb && \ apt-get clean ENV PATH /opt/conda/bin:$PATH ENTRYPOINT [ "/usr/bin/tini", "--" ] RUN apt-get install -yqq vim RUN pip install -q pdb RUN conda install -c cvxgrp cvxpy RUN conda install libgcc RUN pip install cvxopt WORKDIR /totalsim 

我运行一个交互容器使用这个图像,我想能够从命令行调用jupyter notebook 。 我可以添加到上面的dockerfile(或我的docker运行命令)启用jupyter? 我需要让容器访问我的主机端口之一吗? 我是Docker的新手(和jupyter),所以我很迷茫。