$PATH variable environment reinitialized
Issue #41
closed
Hello,
during my docker image build, I use the ENV Dockefile command in order to add some pathways to the PATH variable.
With Godocker, it seems to have a reset of the $PATH variable because it becomes
/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/cmonjeau/bin
Am I right?
Comments (4)
-
repo owner -
repo owner - changed status to open
Try to save env variables at startup and reload it when loading script
-
repo owner -
assigned issue to
-
assigned issue to
-
repo owner - changed status to closed
CLoses
#41keep Docker image env variables when executing user script→ <<cset fc11e95dfbd3>>
- Log in to comment
Script is wrapped to be executed as a different user (plus godocker specific setup), so Docker image env is dropped (as well as entrypoint). There is no way to know which env variables are set by docker (vs other ones).
If binary should be in PATh, well it should be in /usr/bin (or symlinked).....
Anyway, I gonna test to see if I could save the original env and reload it when executing script as user.