sudo no tty present and no askpass program specified - how to resolve this error

0 votes
Jun 11, 2020 in Docker by Roshin
• 120 points
5,360 views

1 answer to this question.

0 votes

Hi@Roshin,

When you use sudo command, it will ask the password. But docker doesn't give you any tty to put your password. To avoid this error you can set NOPASSWD for your user in /etc/sudoers file as given below.

$ vi /etc/sudoers
user ALL=(ALL) NOPASSWD: ALL

answered Jun 11, 2020 by MD
• 95,440 points

Related Questions In Docker

0 votes
1 answer
0 votes
1 answer

Error “unable to resolve host docker”

This error occurs because its not a ...READ MORE

answered Jul 10, 2018 in Docker by Kalgi
• 2,680 points
4,632 views
0 votes
1 answer
0 votes
2 answers

How do I fix the “no space left on device” error in docker?

Try cleaning up: $ docker volume rm $(docker ...READ MORE

answered Aug 14, 2019 in Docker by Sirajul
• 59,230 points
12,173 views
+1 vote
1 answer

How to expose docker container's ip and port to outside docker host without port mapping?

you can accomplish this with IP aliasing ...READ MORE

answered Aug 2, 2018 in Docker by Kalgi
• 52,360 points

edited Jan 16, 2020 by Kalgi 30,920 views
0 votes
1 answer

Error: “Docker for Windows: No hypervisor is present”

I faced the same error and this ...READ MORE

answered Aug 14, 2018 in Docker by Sophie may
• 10,610 points
886 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP