Closed mattstein closed 3 years ago
I’m pretty sure I know what this is and will look into it soon.
Hopefully if possible and based on further investigation, the ambition in the future would be for Nitro to be able to commit the /etc/hosts
content directly to the Windows system hosts file too, as the /mnt/c/
path is exposed through WSL, the only caveat is an elevated WSL terminal is needed to be able to do this, as even with sudo without the process being elevated to begin with from the Windows host, a file write is not possible from within WSL.
Description
These really good docs promise Nitro will output steps for manually editing
etc\hosts
in Windows:This is true only for the
apply
command, but not when runningcreate
oradd
. I would expect that Nitro would output these steps any time hostnames need to be updated, regardless of the command used.Steps to reproduce
nitro create
, follow the prompts, and note the steps end with the following output:nitro edit
to save a change tonitro.yaml
, then runnitro apply
.---- COPY BELOW ----
and---- COPY ABOVE ----
.Additional info