Skip to content

Uncomplete .bashrc for using conda #2304

Closed as not planned
Closed as not planned
@harpine

Description

@harpine

What docker image(s) are you using?

minimal-notebook

Host OS

Ubuntu 24.04

Host architecture

x86_64

What Docker command are you running?

docker-compose.yml:

jupyter:
#image: quay.io/jupyter/minimal-notebook:latest
image: quay.io/jupyter/minimal-notebook:2025-06-23
#container_name: jupyter-notebook
ports:
- "8888:8888"
- "2222:22"
volumes:
- ./jupyter_data:/home/me
environment:
- JUPYTER_ENABLE_LAB=yes
- JUPYTER_TOKEN=XXXXXX
##- NB_USER=me
- CHOWN_HOME=yes
- GRANT_SUDO=yes
- GEN_CERT=yes
- RESTARTABLE=yes

How to Reproduce the problem?

  1. connect via ssh to the docker container
  2. the error :
    -bash: conda: command not found
    appears

Command output

Expected behavior

No response

Actual behavior

conda command not found

Anything else?

Quick fix for other users having this problem and wanting to use conda:
Add this command to the ~/.bashrc
(above the command eval "$(conda shell.bash hook)" )

export PATH="/opt/conda/bin:$PATH"

Permanent fix suggestion for the team:

Probably a line similar to line 57 resulting to the quick fix above should be added just before this line 69 in order to insert the missing path adjustment in the .bashrc

Thank you !

Latest Docker version

  • I've updated my Docker version to the latest available, and the issue persists

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:BugA problem with the definition of one of the docker images maintained here

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions