0

I am trying to run a basic docker command using shell script from my Jenkins in AWS Ubuntu instance. When I am trying to run like: sudo docker build mavendocker:1.0.0 . I am getting below error: enter image description here

I tried to change the visudo following: How to fix 'sudo: no tty present and no askpass program specified' error? but it screwed my visudo file of AWS Ubuntu instance.

Is there any other way, I can execute my Jenkins job?

Arka
  • 101
  • 1
  • 8

1 Answers1

0

Above problem is resolved following: https://sgoyal.net/2016/11/18/run-a-shell-from-jenkins-using-sudo-ubuntu/

Arka
  • 101
  • 1
  • 8