How to access the docker-container-ip:docker-container-port from outside network

I’m running docker setup in following way

1) On windows running the vagrant script to install ubuntu14.04 on my local VM

  • docker registry v2, where do buffered or pushed images get stored
  • Bitbucket Pipelines - mvn clean install not working with JavaFX
  • How to add volume to Docker but exclude files
  • can't connect to docker container from outside
  • apache marathon: my docker image keeps failing
  • Create dynamic environment variables at build time in Docker
  • 2) on top of VM running docker containers

    Here my concern is like

    My Windows machine subnet is different (like 10.204.255.*/16)

    My VM subnet is different like(10.0.2.*/16)

    My docker container subnet is different like(172.17.0.*/24)

    If I want to access specific container services in VM level , i can use them specifying like VM-ip or localhost:forwardind-port/ ; it sounds good
    If I want to access from Windows machine it’ll work same way with forwarding-port

    But from windows machine, if i want to access like container-ip:container-port/
    How can achieve this ?

    Why i need to access like this is , in my container i’m running corba specific service, those service we can access via specific service running container-ip n port

  • Unable to run cygwin in Windows Docker Container
  • Pika to RabbitMQ connection failure using Raspberry PI and Docker container
  • Java + Docker: Different datasource url
  • Should I use AWS Elastic Beanstalk or the Amazon EC2 Container Service (ECS) to scale Docker containers?
  • Running Docker Containers on Docker Swarm using Marathon?
  • How to debug docker container with PhpStorm
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.