There are two images provided by Ananconda originally called Continuum Analytics.
The answer I am providing assumes you need to run a notebook using a container based on the anaconda3
image, but you can also use the miniconda3
image instead. You can see the differences between both in this link.
You can run the following commands in order to have a jupyter notebook running from a container:
$ docker pull continuumio/anaconda3
$ docker run -it -p 8888:8888 continuumio/anaconda3 bash -c "/opt/conda/bin/conda install jupyter -y --quiet && mkdir /opt/notebooks && /opt/conda/bin/jupyter notebook --notebook-dir=/opt/notebooks --ip='*' --port=8888 --no-browser --allow-root"
Alternatively, you can also just run the container and open the bash by:
$ docker run -it continuumio/anaconda3 bash