I deployed frappe using Docker, and then I wanted to create a new site dev.localhost. This step was also successful, but during execution (the command I executed in the container):
bench --site dev.localhost add-to-hosts
Error prompt: sudo - not found
Then I tried executing the command on the host computer:
docker-compose exec backend bench --site dev.localhost add-to-hosts
And then it also went wrong.
In the container, I tried manually editing/etc/hosts and adding the corresponding records, but because the user is frappe instead of root, I still couldn’t add and save them.
Can you tell me what I should do?