I created a ubuntu docker container and when I try to edit the sudoers file I get the following message.
root@8c8a8ff68234:~# sudo visudo
visudo: no editor found (editor path = /usr/bin/editor)
Create command and run command:-
docker run -id ubuntu
docker exec -ti 8c8a8ff68234 /bin/bash