clarity on how to edit host file
Opened this issue · 1 comments
dansgithubuser commented
Readme says: "If you use default base url (http://local.magento) or other test url, you need to modify your host file to map the host name to docker container."
Could you give an example of this? Like if docker ps
says
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ce9f87205e1e phpmyadmin/phpmyadmin "/run.sh supervisord…" 3 minutes ago Up 3 minutes 9000/tcp, 0.0.0.0:8580->80/tcp docker-magento_phpmyadmin_1
4a9bd10b280a alexcheng/magento "/sbin/my_init" 3 minutes ago Up 3 minutes 0.0.0.0:80->80/tcp docker-magento_web_1
f5caee2ac173 mysql:5.6.23 "/entrypoint.sh mysq…" 3 minutes ago Up 3 minutes 3306/tcp docker-magento_db_1
and I've used the default settings, then how should the line in my host file look?
I'm assuming this will solve the symptom "website can't be reached after running install-magento
".
bonzinho commented
You need edit your host file, you can find your OS host file, following this article: https://www.howtogeek.com/howto/27350/beginner-geek-how-to-edit-your-hosts-file/
You need only add new line with 0.0.0.0 your.local.domain (change your.local.domain for your magento url) i think this is it