Access KVM VM over the network from a Docker container

KVM is used to host some VMs in the network Docker is running on the same machine in I need to configure networking so that Docker containers can access a KVM VM. For testing purpose I have two machines, each running a webserver to test working connections using wget:

Docker Container on

  • Cannot leave swarm mode
  • Pass docker-compose environment to symfony configuration
  • Atomic, Docker 1.10 and Openshift Origin 1.2 incompatibility
  • Cannot access port on host mapped to docker container port
  • Docker - Is it possible to recreate volume container without recreating the containers that use it
  • docker vs docker-compose nginx: [emerg] host not found in upstream “” in /etc/nginx/nginx.conf:21
  • KVM VM on

    In KVM I configured a virtual network as redirection to all physical networks. This allows me to access the Docker container from A KVM VM. But not working is the other way round: Accessing the KVM VM ( from the Docker container (

    docker network create --driver=bridge --subnet= my-network

    The container is started like this:

    docker run --name=gogs --network=my-network --ip= -v /var/gogs:/data gogs/gogs

    What is the KVM virtual network wizard doing here that Docker is missing?

    net.ipv4.ip_forward=1 is enabled in /etc/sysctl.conf and I did a reload using sysctl --system.

    Docker network interface

    br-7b4175d9379d: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet  netmask  broadcast
        inet6 fe80::42:9ff:fe6b:75dd  prefixlen 64  scopeid 0x20<link>
        ether 02:42:09:6b:75:dd  txqueuelen 0  (Ethernet)
        RX packets 90  bytes 41977 (41.9 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 116  bytes 18172 (18.1 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

    KVM network interface

    virbr0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet  netmask  broadcast
            ether 52:54:00:85:7f:95  txqueuelen 1000  (Ethernet)
            RX packets 1463  bytes 101054 (101.0 KB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 1214  bytes 1490407 (1.4 MB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

  • Best practices for debugging vagrant+docker+flask
  • Out of memory error in opencv3.0 which is running inside docker container
  • How to test the docker containers startup time
  • How to deploy a Play 2.5 app on Jelastic with Docker?
  • Current Base Device UUID: does not match with stored UUID:
  • Docker installation just downloads index.html file
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.