Install lms, add-to-hosts, error sudo: not found

Hi, I followed https://github.com/frappe/frappe_docker/blob/main/docs/single-server-example.md to install docker images in DigitalOcean, Ubuntu 22.04.
I followed the steps below to install LMS until hit "sudo: not found " error. Can you point a direction how I should resolve this error? I tried to install sudo into the container, but I don’t have frappe user password. Should I set password for frappe user?

$ docker exec -it erpnext-one-backend-1 bash
frappe@458bcd6ebccf:~/frappe-bench$ bench get-app education
frappe@458bcd6ebccf:~/frappe-bench$ bench --site $mysite install-app education
frappe@458bcd6ebccf:~/frappe-bench$ bench get-app lms
frappe@458bcd6ebccf:~/frappe-bench$ bench --site $mysite install-app lms
frappe@458bcd6ebccf:~/frappe-bench$ bench --site $mysite add-to-hosts
/bin/sh: 1: sudo: not found

environment:
bench 5.16.4
education 0.0.1
erpnext 14.32.1
frappe 14.42.0
lms 1.0.0

Thanks,
Philip Wang

Use native manual bench install.

I realize the “add-to-hosts” can be done by
manually editing /etc/hosts to add the following line.
127.0.0.1 mysite

it is working correctly.

Thanks. I believe this is the right way to add app in the build. I will try later.