Boot2Docker - Access webserver as localhost

后端 未结 2 1789
遇见更好的自我
遇见更好的自我 2021-01-02 11:54

Created a apache webserver as Docker container but want to access it on windows os browser as localhost.

I can access the webserver with boot2docker private ip addre

2条回答
  •  没有蜡笔的小新
    2021-01-02 12:41

    boot2docker actually created a vm with linux core in your Mac OS with VirtualBox, and 192.168.59.103 is the ip for that vm.

    So you need to set a port forward for that vm

    Notice that in Mac OS, port 80 need a high permission, so I use 8080 instead in this example.

    enter image description here

提交回复
热议问题