[Job2] $ /bin/sh -xe /tmp/jenkins308.sh + sudo docker run -it -d --name web -p 8081:80 httpd:latest >>> /etc/sudoers: syntax error near line 101 <<< sudo: parse error in /etc/sudoers near line 101

0 votes

Hi Guys,

I am trying to create one job in jenkins to run docker container, but it shows me the below error.

Started by user admin
Running as SYSTEM
Building in workspace /var/lib/jenkins/workspace/Job2
[Job2] $ /bin/sh -xe /tmp/jenkins3082368546458615220.sh
+ sudo docker run -it -d --name web -p 8081:80 httpd:latest
>>> /etc/sudoers: syntax error near line 101 <<<
sudo: parse error in /etc/sudoers near line 101
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
Build step 'Execute shell' marked build as failure
Finished: FAILURE
May 5 in Jenkins by akhtar
• 11,270 points
31 views

1 answer to this question.

0 votes

Hi@akhtar,

In your error, it says /etc/sudoers: syntax error near line 101, means you made a mistake when you edit this file.

Try to check /etc/sudoers file in your base system and try once.

answered May 5 by MD
• 24,500 points

Related Questions In Jenkins

0 votes
1 answer

I’m facing a login error when I try to run Jenkins on Docker. How do I solve this?

You have to open the /var/log/jenkins/jenkins.log file to ...READ MORE

answered Jul 24, 2018 in Jenkins by Sophie may
• 9,940 points
711 views
0 votes
2 answers

/tmp/jenkins7925067706776714433.sh: ./deploy: Permission denied in jenkins

To avoid this error, You should add ...READ MORE

answered Mar 31 in Jenkins by akhtar
• 11,270 points
109 views
0 votes
1 answer

Print the line if it contains a specific string by using groovy.

You can try the code written below: ...READ MORE

answered Apr 27, 2018 in Jenkins by shubham
• 6,910 points
5,538 views
+2 votes
3 answers

Permission denied error while running a simple job in Jenkins

Hey @Hannah, try changing the permissions using ...READ MORE

answered Oct 25, 2018 in Jenkins by krishti
16,719 views
0 votes
1 answer
0 votes
2 answers
0 votes
1 answer

/tmp/jenkins6403305246799294208.sh: line 2: cd: /root: Permission denied

Hi@akhtar, You are getting permission denied because you ...READ MORE

answered Feb 6 in Jenkins by MD
• 24,500 points
261 views