Link docker container with host

I would like to forward docker-host port (3389) to docker container so container can connect to Is this somehow possible?

  • NodeJS microservices
  • Mount a Virtualbox shared folder as a volume for Docker running on the guest OS
  • Red Hat support for Docker
  • Moving docker root folder to a new drive / partition
  • Not able to Build any Dockerfile
  • How can I reduce the size of Docker images
  • debug docker deamon with gdb or cgdb
  • Ubuntu16 Docker-engine startup error: “no sockets found via socket activation: make sure the service was started by systemd”
  • “Error response from daemon: 404 page not found” While using docker command
  • Copy files inside of docker image during build
  • boot2docker: port forwording to manage spark workers through web UI on Mac OS
  • Docker registry login fails with “Certificate signed by unknown authority”
  • One Solution collect form web for “Link docker container with host”

    The easiest thing to do would be using --net=host. That effectively puts the container in the host network (which may not be what you want). Another option would be to talk to the docker host interface.

    DOCKER_HOST=`ip route show | grep ^default | awk '{print $3}'`

    should figure out the IP of the host inside the container. The latter assumes that the host service listens on that (or all) host interfaces though. There are most likely more tricks achieving what you want using iptables but those two are the simplest I can come up with. You might want to check for further details.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.