If I use Conda to manage my Python environment and packages, and want to replicate that in Docker, I can use Conda inside Docker. The continuumio/miniconda3 Docker image is about 400MB larger than Python-slim, but other than that, are there any real-world downsides/performance issues in running Conda inside Docker? (As opposed to installing packages in Docker via pip, Pipenv, etc.?)
Are there any downsides to using Conda inside Docker?
86 Views Asked by mrbuttonsmeow At
1
There are 1 best solutions below
Related Questions in PYTHON
- How to store a date/time in sqlite (or something similar to a date)
- Instagrapi recently showing HTTPError and UnknownError
- How to Retrieve Data from an MySQL Database and Display it in a GUI?
- How to create a regular expression to partition a string that terminates in either ": 45" or ",", without the ": "
- Python Geopandas unable to convert latitude longitude to points
- Influence of Unused FFN on Model Accuracy in PyTorch
- Seeking Python Libraries for Removing Extraneous Characters and Spaces in Text
- Writes to child subprocess.Popen.stdin don't work from within process group?
- Conda has two different python binarys (python and python3) with the same version for a single environment. Why?
- Problem with add new attribute in table with BOTO3 on python
- Can't install packages in python conda environment
- Setting diagonal of a matrix to zero
- List of numbers converted to list of strings to iterate over it. But receiving TypeError messages
- Basic Python Question: Shortening If Statements
- Python and regex, can't understand why some words are left out of the match
Related Questions in DOCKER
- sqlplus myusername/mypassword@ORCL not working with Oracle on Docker
- Golang == Error: OCI runtime create failed: unable to start container process: exec: "./bin": stat ./bin: no such file or directory: unknown
- Only the first SQL script gets executed inside Docker Postgres container
- Retrieve the Dockerfile configuration from the Kubernetes and also change container Java parameter?
- Polars with Rust: Out of Memory Error when Processing Large Dataset in Docker Using Streaming
- Compiling eBPF program in Docker fails due to missing '__u64' type
- AttributeError: module 'numba' has no attribute 'generated_jit'
- Phoenix in a docker dev environment - generated code can't be saved from VSCode
- Docker on Multipass VMs: Connecting worker nodes to swarm results in rcp error
- Facing error in creating image of my react+vite project . Dockerfile error
- NextJS Docker build fails: fetch failed ECONNREFUSED
- Docker container unable to make HTTPS requests to external API
- Failed to connect to your instance after deploying mern app on aws ec2 instance when i try to access frontend
- Connecting to Postgres running in a Docker container using psql
- Can't connect to local postgresql server from my docker container
Related Questions in CONDA
- Conda CMAKE CXX Compiler error while compiling Pytorch
- Unknown dependency "pin-1" prevents conda installation
- How to transfer all conda environments to new computer
- Python Selenium Chrome Driver version 123.0.6312.86
- Seem to have broken Spyder via Anaconda update (?)
- Pip is searching other requirement file than I wish
- python anaconda conda-pack - environment doesn't exist
- Difference between installing packages with conda and pip
- How to resolve Value Error when building neural network with tensorflow
- Cannot find module after importing
- "FileNotFoundError" for xlwings add installation
- How do I see which versions of packages are compatible with one another
- Pandas problem with DataFrame and Append function
- Pyaudio installed with Conda but not found on Import
- having issues installing libraries using the 'conda' command after installing anaconda
Related Questions in MINICONDA
- Conda has two different python binarys (python and python3) with the same version for a single environment. Why?
- problem with running Kallisto on single cell data
- Error while creating docker image from env.yml file which has a python package that i created locally
- Poetry create new virtual environments after installing conda
- Resolve Miniconda Permissions in Ubuntu?
- Pandas problem with DataFrame and Append function
- I changed default path, now I'm getting a subprocess error in miniconda. ERROR: Cannot set --home and --prefix together
- python conda interpreter ERROR: double free or corruption (out)
- Spyder console not working after installing into spyder-env using Miniconda after a fresh Ubuntu Studio install
- Disable auto conda activation of a non-base env, which occurs only in VSCode, not in command prompt
- I think iam getting something wrong
- Shouldn't conda activate <env> ensure that default python, pip ect are changed to miniconda3/envs/<env>/bin?
- Fail to restore conda environment
- code doesn't work in PyCharm, but work in remote executing
- Conda environment in VSCode has to be restarted to show correct packages
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
In general that works fine. It depends on what your goals are.
If you want to have a lean Python service container, you could use the official Python image from docker hub tagged with
alpine, e.g.python3.12-alpinetag. Then usepipto install fromrequirements.txtor a Poetry-based project setup.This will get you an even smaller image size than
slimand typically work just as well.However, if you want to replicate your Conda experience 1:1 your approach with Conda in Docker has its reasons: Conda binaries are built differently than regular Python wheels, e.g. it has its own version of Openblas, etc. with different optimizations.