i have two commands:
In my understanding nginx will show default page on my computer's port 80
In my host machine localhost:80 works perfectly same: gives me default nginx page.
BUT when i try it on other LAN machine, if i type my-host-machinip:80, first one works but second one gives me "connection refuesed"
i can not understand why it happend.
--network host
允许容器访问整个主机网络,而-p 80:80
将容器的端口 80 映射到主机的端口 80
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.