Python Forum
Cannot bring up anaconda in Docker image
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot bring up anaconda in Docker image
#1
I decided to use Spyder as my full screen debugger. It seemed the most user friendly.

I ave used Anaconda many times before on Windows 10, but not in a Docker image.

I tried to start it using either Anaconda or Syder.

I got the error.

Error:
(base) root@aa50cc265817:/# anaconda usage: anaconda [-h] [--disable-ssl-warnings] [--show-traceback] [-v] [-q] [-V] [-t TOKEN] [-s SITE] ... anaconda: error: A sub command must be given. To show all available sub commands, run: anaconda -h (base) root@aa50cc265817:/# ls bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var (base) root@aa50cc265817:/# spyder Traceback (most recent call last): File "/opt/conda/bin/spyder", line 11, in <module> sys.exit(main()) File "/opt/conda/lib/python3.7/site-packages/spyder/app/start.py", line 201, in main from spyder.app import mainwindow File "/opt/conda/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 70, in <module> from qtpy.compat import from_qvariant File "/opt/conda/lib/python3.7/site-packages/qtpy/compat.py", line 15, in <module> from .QtWidgets import QFileDialog File "/opt/conda/lib/python3.7/site-packages/qtpy/QtWidgets.py", line 22, in <module> from PyQt5.QtWidgets import * ImportError: libGL.so.1: cannot open shared object file: No such file or directory (base) root@aa50cc265817:/#
I am using the "continuumio/anaconda3' docker image.

I just do not know the command to bring anaconda on this Docker image.

Is there a readme file on this Docker image?

Any help appreciated. Thanks in advance.

Respectfully,

ErnestTBass
Reply
#2
It looks like Anaconda is a GUI program and even if the libraries were in the image, you'd have to do X11 forwarding since all you have in the container is a shell. Even the notes at hub.docker.com say to start a Jupyter notebook: https://hub.docker.com/r/continuumio/anaconda3.

Also, a note on terminology: the thing you're actually running with Docker is a container, not an image. An image is just the packaged up software and you can run multiple containers from the same one.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Lightbulb shutdown host from docker container cosmin1805 0 947 Nov-27-2022, 06:34 PM
Last Post: cosmin1805
  Issue in Starting Django project with Docker Prabakaran141 0 821 Sep-26-2022, 12:15 PM
Last Post: Prabakaran141
  Docker -building a python image saisankalpj 5 3,921 Jul-13-2022, 12:53 PM
Last Post: saisankalpj
  list sort() function bring backs None CompleteNewb 6 4,111 Mar-26-2022, 03:34 AM
Last Post: Larz60+
  Docker-compose on Pycharm - Connection refused rstambach 3 3,386 Apr-08-2021, 03:07 AM
Last Post: rstambach

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020