Public | Automated Build

Last pushed: 22 days ago
Short Description
Powerful and flexible python distribution
Full Description

docker-anaconda

Docker container with a bootstrapped installation of Anaconda (based on Python 2.7) that is ready to use.

The Anaconda distribution is installed into the /opt/conda folder and ensures that the default user has the conda command in their path.

Anaconda is the leading open data science platform powered by Python. The open source version of Anaconda is a high performance distribution and includes over 100 of the most popular Python packages for data science. Additionally, it provides access to over 720 Python and R packages that can easily be installed using the conda dependency and environment manager, which is included in Anaconda.

Usage

You can download and run this image using the following commands:

docker pull continuumio/anaconda
docker run -i -t continuumio/anaconda /bin/bash

Alternatively, you can start a Jupyter Notebook server and interact with Anaconda via your browser:

docker run -i -t -p 8888:8888 continuumio/anaconda /bin/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"

You can then view the Jupyter Notebook by opening http://localhost:8888 in your browser, or http://<DOCKER-MACHINE-IP>:8888 if you are using a Docker Machine VM.

Docker Pull Command
Owner
continuumio
Source Repository

Comments (8)
tbernhard
2 months ago

For those looking for the Python 3 image, it's available at continuumio/anaconda3

alrojo
5 months ago

Will this be available in python 3?

hongsiang
10 months ago

I'm starting the notebook server, and I notice this error/warning:

✗ nbpresent PDF export DISABLED: No module named nbbrowserpdf.exporters.pdf

How can I fix this, so that I can have the PDF export option?

dockerbenoit
a year ago

figured out that the problem is that the root user returns None

so I tried to create a user which worked fine

adduser username

did all the password setting and so on which worked fine

then switched from root to my user

su - username

then launched spyder and got the following error

Spyder: cannot connect to X server

dockerbenoit
a year ago

  • downloaded the anaconda docker image - fine

$ docker pull continuumio/anaconda
$ docker run -i -t continuumio/anaconda /bin/bash

  • installed tensorflow conda package - fine

root@91d1a79263c7:/# conda install -c https://conda.anaconda.org/jjhelmus tensorflow

  • upgraded anaconda for safety - fine

root@91d1a79263c7:/#conda update conda

  • then tried to launch spyder and I get an error message

root@91d1a79263c7:/#spyder

Traceback (most recent call last):
File "/opt/conda/bin/spyder", line 2, in <module>
from spyderlib import start_app
File "/opt/conda/lib/python2.7/site-packages/spyderlib/start_app.py", line 12, in <module>
from spyderlib.baseconfig import get_conf_path, running_in_mac_app
File "/opt/conda/lib/python2.7/site-packages/spyderlib/baseconfig.py", line 188, in <module>
from spyderlib.otherplugins import PLUGIN_PATH
File "/opt/conda/lib/python2.7/site-packages/spyderlib/otherplugins.py", line 17, in <module>
from spyderlib.utils import programs
File "/opt/conda/lib/python2.7/site-packages/spyderlib/utils/programs.py", line 29, in <module>
username = encoding.to_unicode_from_fs(os.environ.get('USER'))
File "/opt/conda/lib/python2.7/site-packages/spyderlib/utils/encoding.py", line 62, in to_unicode_from_fs
string = to_text_string(string.toUtf8(), 'utf-8')
AttributeError: 'NoneType' object has no attribute 'toUtf8'

caseyjlaw
2 years ago

Using this as instructed above (on macbook/OSX via boot2docker), I can't do a general update:

root@8acc8ef77b85:/# conda update --all
Fetching package metadata: ....
Solving package specifications: .........Killed
mutirri
2 years ago

The ImportError: libXext.so.6 should be corrected now (missing libraries were added to images).

blavoie
2 years ago

It would be nice that the image could make ipython qtconsole work correctly.

When I start the container with these options:
-v /tmp/.X11-unix:/tmp/.X11-unix --e DISPLAY=unix$DISPLAY

And when invoking ipython qtconsole I get the following error at the end of the stack:
ImportError: libXext.so.6: cannot open shared object file: No such file or directory