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,752 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,460 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,901 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,702 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,350 points

edited Jan 16, 2020 by Kalgi 31,660 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,620 points
1,272 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