Skip to content
Discussion options

You must be logged in to vote

This turned out to be with the Debian Dockerfile. In /etc/profile there is a check for the user which will overwrite the PATH.

if [ "$(id -u)" -eq 0 ]; then
  PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else
  PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
fi
export PATH

It seems the way I was starting the docker container locally was not considering it as an interactive terminal so /etc/profile was not being loaded and in turn I was unable to replicate this behavior. I was able to update the Dockerfile that uses Debian to have an alternate /etc/profile and it is working now

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by xiphoid24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant