Tag: networking

Set `–net-alias` using Docker API?

I have the following flow using following docker APIs: build image create container connect container to network (using existing network id) start container I would like to somehow set the alternative network name for the container, i.e. so called network alias that in CLI can be set using the –net-alias. How?

How to connect to a docker server on the network set-up with Hyper-V

Basically my question is: How do I connect to a docker host on the network? Background: We have a Windows Server 2012 machine that I would like to run a docker engine from. I’ve managed to get it running with docker-machine and the hyperv driver. I’ve also successfully gotten a docker host to work on […]

How to add Vxlan Tag to isolation different group of Docker Containers

First, I am aware of creating a VXLAN interface with tag based on ip command: ip link add vxlan-br0 type vxlan id <tag-id> group <multicast-ip> local <host-ip> dstport 0 But it is useless for my actual demand, and my demand is to isolate multiple docker containers using different tags, something like: brctl addif br1 veth111111 […]

flannel error failed to initialize network failed to open tun device

I’m using flannel for the first time and I’m testing it with two nodes (Ubuntu14.04) with etcd running. The ip addresses of the two nodes are (node1) and (node2), and they can ping each other without problem. I have configured flannel network in etcd as follows: On node1: etcdctl set /coreos.com/network/config ‘{ “Network”: […]

Add multiple network interfaces inside a pod in Kubernetes

I’m trying to add a second network interface in Docker containers (with only Docker, I simply add my container to another “docker network” using the docker network command) in Kubernetes such that containers are also able to communicate together through this second interface. The thing is that it is not possible to simply call the […]

How to connect docker in VM of VMware Player

I create a VM in win7 host. The net mode is NAT, and IP of VMware Virtual Ethernet is The VM (its OS is debian) can connect the host by eth0. Win7 can connect VM, too. Than I create docker in VM. The net mode is bridge, and IP of bridge Ethernet (docker0) is […]

docker (running in virtual box) expose port on host machine

I’m running docker in virtual box (docker machine) on a MAC server. I have some running containers that expose certain ports to the host machine, so I can access them via URL of the virtual machine + exposed port. But I’m not able to reach the exposed services from outside the host system, as the […]

External static IP with Docker

I’m trying to set up a network bridge in Docker that is bridged to the external interface on the host machine. I’m running Docker 10.11 on CentOS 7 This blog explains it well… https://forums.docker.com/t/public-accessible-ip-in-container-like-bridge-network-in-virtualbox/3668/5 Here’s the command I docker I created the bridge according to the command here: sudo docker network create \ –driver bridge […]

Docker modify iptables of a single running container

If this is possible, how can it be done? I want the changes to modify only rules within a container, not affect any other containers, and not affect the host.

Redirect traffic from docker container into localhost

I have a Docker host with a tunnel listening on There is a container that sends out traffic. I need to get this traffic into the tunnel. The Docker host is running CentOS 7.2 and I have made the service inside the Docker container send everything to, which is the IP of the […]

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