You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "setup-sshd": executable file not found in $PATH: unknown.
ERRO[0000] error waiting for container: context canceled
Anything else?
in docker file either add:
RUN echo "PATH=${PATH}" >> /etc/environment
COPY setup-sshd /usr/local/bin/setup-sshd
RUN chmod +x /usr/local/bin/setup-sshd
EXPOSE 22
ENTRYPOINT ["setup-sshd"]
The root cause is that the setup-sshd does not have the executable bit when you ran the command docker build (there could be numerous reasons: a git repository that removed the bit when cloned, a umask, an archive with no bit, a shared filesystem, etc.).
However you make a good point: setting the entrypoint ot make an explicit call to bash would help.
Any signals would still be propagated to the shell script with this form, and that would ensure that end user can override the default user as well.
Jenkins and plugins versions report
Environment
What Operating System are you using (both controller, and any agents involved in the problem)?
ubuntu 20.04
Reproduction steps
Expected Results
container should run with args
Actual Results
docker container fails to start:
Anything else?
in docker file either add:
or
The text was updated successfully, but these errors were encountered: