I had a virtual machine with Ubuntu which is installed inside windows 10 host and accessible to all pcs in LAN using its IP address. Inside Ubuntu I'm running the docker containers within docker-machine. And Docker machine is only accessible in Ubuntu system. Architecture can be found in provided image link.
Architecture of LAN-UbuntuVM-Docker-Machine https://ibb.co/LzTbFzL
Now I'm running a docker container inside docker machine
docker run -d -p 8000:80 nginx
Which bind ports 8000 of Docker Machine to containers 80 and On Ubuntu machine I can access the container with http://192.168.99.100:8000 from browser in Ubuntu machine.
I had added an entry to /etc/hosts file to give domain name to docker-machine
...
192.168.99.100 docker.devv
...
So now I can access the docker container with http://docker.devv:8000/ inside Ubuntu virtual machine.
Now I want to access the docker containers from Windows host machine using domain name like "http://docker.devv:8000/"
I tried by adding the Ubuntu VM ips with hostname "docker.devv" to winodws etc\host file but it is not working.
Anyone can help with this?
http://192.168.99.100:8080
?bridged
. If so have a look at this: communities.vmware.com/thread/580135