Hi! I’m currently setting up a docker container to run scripts for me on the basis of the official ubuntu image. Everything works fine, scripts have been added to $PATH so that I can call them from within the shell (docker run -it image). However, the scripts are not available if I try to call them directly:
docker run image script.pl
docker: Error response from daemon: oci runtime error: exec: "detect_cnv.pl": executable file not found in $PATH.
I tried adding the directories to /etc/profile, but found out that is only being sourced once a shell is started. But also if I add them to /etc/environment they can’t be found. So the question is, where is the $PATH that I need to add my directories to?
All help is appreciated