Reputation: 516
I'm running docker in virtual box (docker machine) on a MAC server. I have some running containers that expose certain ports to the host machine, so I can access them via URL of the virtual machine + exposed port. But I'm not able to reach the exposed services from outside the host system, as the docker containers are sandboxed in their own virtual network I guess.
Is it possible to also expose the port on the host machine so people from outside can reach the web services running in docker inside my virtual machine?
Upvotes: 3
Views: 4644
Reputation: 30723
There are 2 options:
I hope this guide can help you.
Upvotes: 2