0

We are running Jenkins in a docker container and using the Docker-outside-of-Docker approach. As is well documented, we added:

jenkins ALL=NOPASSWD: ALL

to /etc/sudoers.

The problem we face is that our pipeline job randomly fails when executing the first make command:

sudo -E make login

with the error:

sudo: no tty present and no askpass program specified

Why are we experiencing this error only sometimes?

Matthew S
  • 840
  • 2
  • 12
  • 24
  • 4
    can you try starting the container with the `-t` option? Another thing to try is starting it with `--user root` and avoid using `sudo` – yamenk Nov 09 '17 at 14:40
  • Adding 'user: root' to my docker-compose file and removing sudo -E from the make commands solved the issue. – Matthew S Nov 09 '17 at 18:37

0 Answers0