Updating vista hosts file
You can not modify the host file using echo in RUN step because docker will maintain the file when you will start it and contents of the file will be managed by docker.
Note that you can use the HOSTS file to redirect a user from one site to another site too.
In the example if you opened a command prompt and typed “ping printer” it should return a ICMP response from 192.168.1.201.
live in the So Bro neighborhood of Louisville, KY with my daughter and our cat Apollo.
It can allow you to check, what a domain will show if it’s pointed to a different server.
The hosts file will be edited to block certain hostnames (like advertising/malicious hosts), or used for web development purposes, i.e. To access the hosts file in Windows XP, Vista, 7, 8x, 10 you have to use the following command in the Run Line to open the file with notepad. STEP 2: Copy the below mentioned command and paste into the Run Line.
notepad c:\windows\system32\drivers\etc\hosts STEP 3: When notepad is open you can edit the hosts file. To block Facebook just enter following the line after the # mark in the hosts file.