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

0 votes
Jun 10, 2020 in Docker by Roshin
• 120 points
1,480 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 10, 2020 by MD
• 95,180 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
2,751 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,050 points
9,793 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,310 points

edited Jan 16, 2020 by Kalgi 23,419 views
0 votes
1 answer

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

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

answered Aug 13, 2018 in Docker by Sophie may
• 10,550 points
264 views