Sign inSign up

anaconda/miniconda

By anaconda

•Updated about 1 month ago

Official Miniconda Docker image

Image
1

10K+

anaconda/miniconda repository overview

⁠Miniconda

Official Miniconda Docker image maintained by Anaconda.

This image is based on Debian's slim images⁠ to keep the image size as small as possible. As a result, it contains fewer system dependencies compared to continuumio/miniconda3 (for example, no git or wget). If your workflow requires these tools, you can install them with conda (e.g., conda install git) or apt-get.

⁠Running the Image

Miniconda is installed into /opt/miniconda3 with conda initialized for all supported shells.

Start an interactive shell with the default environment activated:

docker run -it anaconda/miniconda:latest

Run a Python script directly:

docker run -v $(pwd):/app anaconda/miniconda:latest python /app/script.py

⁠Building a Custom Image

Create a Dockerfile with Miniconda as the base image:

FROM anaconda/miniconda:latest

# Accept ToS via environment variable, create environment, and set it as default
ENV CONDA_PLUGINS_AUTO_ACCEPT_TOS=true
RUN conda create -n myenv python=3.12 numpy pandas -y && \
    conda config --set default_activation_env myenv

Then build and run in the same directory as your Dockerfile:

docker build -t my-conda-app .
docker run -it my-conda-app

⁠Terms of Service

This image is subject to the Miniconda EULA⁠. Access to the package repository (required for commands like conda create) requires accepting additional Terms of Service⁠.

Accept the ToS interactively:

conda tos accept

Or set an environment variable (recommended for CI):

steps:
  - name: Run conda in Docker
    run: |
      docker run -e CONDA_PLUGINS_AUTO_ACCEPT_TOS=true anaconda/miniconda:latest \
        conda create -n myenv python=3.12 -y

For more information on CI/CD environments, see conda-anaconda-tos⁠.

Tag summary

Content type

Image

Digest

sha256:38939b55a…

Size

173.6 MB

Last updated

about 1 month ago

docker pull anaconda/miniconda