Jenkins Agent Cannot run program “docker”: error=2, No such file or directory
问题 I have a strange behaviour with my jenkins agent. i have a master and a seperate build agent, which has access to docker. while i'm running the following pipeline script on the build agent: node { sh "id" sh "echo $PATH" sh "docker ps" docker.image("node:latest").inside("") { sh "npm --version" } } i get the following output: Running on docker-agent in /home/jenkins/workspace/test [Pipeline] { [Pipeline] sh [test] Running shell script + id uid=1000(jenkins) gid=1000(jenkins) groups=900(docker