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?
Thank you for the hints! I ended up defining the PATH in the Dockerfile and it works fine. However, those variables show up twice in my PATH if I use the ‘grep | PATH’ command Not a big deal, will figure that out later.