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:
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?