Reputation: 35
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.
Upvotes: 0
Views: 113
Reputation: 7374
--network host
allows the container to have access to the whole host network while the -p 80:80
maps port 80 of the container to the port 80 of host
Upvotes: 2