PATH environment variable overwritten in version 4.0.1 using Docker image
See original GitHub issueOS/Web Information
- Web Browser: Firefox 95.0.1
- Local OS: Ubuntu 20.04
- Remote OS:
- Remote Architecture:
code-server --version
: 4.0.1
Steps to Reproduce
The problem can be reproduced by building the following minimal Docker image :
FROM codercom/code-server:4.0.1
ENV PATH="/home/coder/local/bin/conda/bin:${PATH}"
RUN echo $PATH
and running it as a local server in the browser as explained in the installation guide.
Expected
When opening a terminal in VSCode, the value of $PATH
should be the same as the one echoed at the end of the docker build
step. The behavior is correct when building the image from code-server:3.12.0
.
Actual
When building from code-server:4.0.1
, the $PATH
variable gets overwritten with the following path /usr/lib/code-server/vendor/modules/code-oss-dev/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
. If I run an interactive shell in the docker image using docker exec
, the $PATH
is as expected. But when opening VSCode in the browser, it is incorrect. I don’t see any command in the entrypoint.sh
script which modifies this variable.
Thank’s for this great software.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:6
- Comments:5 (3 by maintainers)
Top GitHub Comments
@rafipiccolo
our workaround for the time being :
which sets the correct
$PATH
provided$SHELL
is set to/bin/bash
, which it is by default.I took a short look but nothing stood out in particular. We will need to dig in a bit more.