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
2,155 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,320 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
3,139 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,090 points
10,613 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,370 points

edited Jan 16, 2020 by Kalgi 25,778 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,550 points
324 views