You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[v2] Use bash by default in the Docker container #918
just slap this in and this will make it the default
ENV SHELL /bin/bash
Reacted by Philipp Möhler, Josiah Saunders, Florian Berndl, Harsh Sharma, Mikhail Gostev, A. Cingoranelli, Fernando Gutierrez, Raashid Ansari, Michał Zawadzki, Yongsheng YU and 4 more
I was thinking the same thing but then I wondered if we could pull it from the user. Normally I think login sets $SHELL based on /etc/passwd but maybe we can just read it ourselves when $SHELL isn't set. That would have the advantage of working in other situations as well.
Activity
deansheather commentedon Aug 19, 2019
In my experience it just uses your login shell. Could you try
chsh -s bashand see if that helps?cfi2017 commentedon Aug 19, 2019
vscode also has a setting to override the default shell used. In our case, it was easier to do something like:
since we also needed to override other settings.
code-asher commentedon Aug 26, 2019
code-asher commentedon Sep 18, 2019
Closing since I don't believe there is anything reasonable we can do here. If
$SHELLisn't setshis the safest fallback.code-asher commentedon Sep 18, 2019
Reopening because in the Docker container at least we should be able to set the default shell to bash.
[-][v2] Terminal does not start with Bash shell [/-][+][v2] Use bash by default in the Docker container[/+]sr229 commentedon Sep 18, 2019
just slap this in and this will make it the default
ENV SHELL /bin/bashcode-asher commentedon Sep 18, 2019
I was thinking the same thing but then I wondered if we could pull it from the user. Normally I think
loginsets$SHELLbased on/etc/passwdbut maybe we can just read it ourselves when$SHELLisn't set. That would have the advantage of working in other situations as well.ishu-harsh commentedon Feb 23, 2021
It's Works - saved my time
sorenwacker commentedon Apr 18, 2021
Hm, does not work for some strange reason.
`FROM ubuntu:focal
ENV PYTHONUNBUFFERED=1
ENV SHELL /bin/bash
RUN mkdir /data /compute /static /appmedia
RUN apt update && apt install -y build-essential wget
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh &&
/bin/bash ~/miniconda.sh -b -p /opt/conda &&
rm ~/miniconda.sh &&
ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh &&
echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc &&
echo "conda activate base" >> ~/.bashrc
WORKDIR /app
COPY requirements.txt /app/
RUN conda install --file requirements.txt`
returns:
code-asher commentedon Apr 20, 2021
@soerendip I believe 127 means command not found so you probably need to install conda.