Create a network for two machines in docker that is not reachable from the host system

Is there a way to create a network with two docker containers in it which is not accessible from the host system?

I search some way to do what is called internal networking in virtualbox.

  • Connecting inside container at docker environment using JSCH
  • How to run and install Protractor E2E tests in Docker container for Laravel?
  • How do I uninstall docker-compose?
  • restart nginx container when upstream servers is updated
  • VisualVM connection to Tomcat hosted on Docker
  • Small change in large file in Docker container produces huge layer
  • If it is possible, how? And if it is not, why?

    Thanks 😀

  • Use data of docker container inside another
  • Is there are a difference in the way Docker and Rocket (rkt) containers access Linux kernel?
  • Docker-compose: resolving mongo container from Angular client code
  • Access services from docker swarm from public
  • Monit not clearing the pid file and restarting a process when the process becomes a zombie
  • Mule 3.7 insufficient memory for JVM
  • One Solution collect form web for “Create a network for two machines in docker that is not reachable from the host system”

    you can adjust iptables rules in each container

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