Closed mpastas closed 7 years ago
Should be working without problems, what are you using as Docker host?
Hi Markus, Virtualbox on Mac.
Any error message? Please keep in mind that the exposed port is only available on the VM, not on the mac.
Right, so it is working there and I would like to expose it on the mac with the port 80, is there any chance to do it using the configs?
Not on docker scope because docker can only control the host on which it is running (the linux host).
If you want it on the mac use the port mapping/forwarding from your virtualization.
What about a Linux OS? Same results in there..
Docker only exposes the port on the linux host where Docker is running so it depends if you're running Docker on the bare metal host (port is available directly on 127.0.0.1) or in a virtualization (same problem) :)
If docker (running in a VM) would have access to your macOS this would be a real security issue if it can control the OS outside of the virtualization ;)
:D Got it! thanks for the quick responses!
You're welcome :)
Is there any configuration to expose the port 80 and 443?
I've tried with docker compose: