Tag: docker networking

How to cusomize docker0 in Docker for different IP range?

I am referring Docker Networking#docker0 for customizing docker0 virtual bridge in Docker. My ifconfig shows this: docker0 Link encap:Ethernet HWaddr d6:0d:76:37:ee:04 inet addr:172.17.42.1 Bcast:0.0.0.0 Mask:255.255.0.0 inet6 addr: fe80::d40d:76ff:fe37:ee04/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:648 […]

Enable broadcasts between docker containers

I’ve been trying to enable some UDP discovery between a few containers. It tuned out that containers have disabled broadcasts by default, missing brd for inet in: $ ip addr show dev eth0 27: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP link/ether 00:00:01:4f:6a:47 brd ff:ff:ff:ff:ff:ff inet 172.17.0.12/16 scope global eth0 valid_lft forever preferred_lft forever […]

Can't discover docker container on user defined network

Since i updated to Docker version 1.10 i’m not able to find other containers on the user defined network. I’m not able to ping the newly created container connected to the same network. I’ve created a network called “my_net”. Then I’m creating a container with the flag: “–net=my_net” and calling it: “first_container”. Then When I […]

Connection Failing to Docker Container

Here is how I run my docker container – docker run –name docker-test-server -p 5000:5000 -p 4444:4444 Container OS – Ubuntu 14.04 LTS Now since I have mapped 4444 of container to that of machine, I try to connect – root@localhost:/var/repo# nc -vz 127.0.0.1 4444 Connection to 127.0.0.1 4444 port [tcp/*] succeeded! Now I enter […]

Link Running External Docker to docker-compose services

I assume that there is a way to link via one or a combination of the following: links, external_links and networking. Any ideas? I have come up empty handed so far. Here is an example snippet of a Docker-compose which is started from within a separate Ubuntu docker version: ‘2’ services: web: build: . depends_on: […]

How to connect WordPress and MySql running on independant containers

WordPress is running inside a Docker container on hostA and MySQL is running inside a Docker container on hostB. Is it possible to link these two containers to communicate to each other? Is this even possible to do something like this? Any help on this is much appreciated as am pretty new to Docker

Flask with docker network: Flask doesn't support multiple network interfaces?

I’m trying to use flask in a docker container but it seems to have a multiple nic problem. That flask container has two docker networks. One is bridge and the other one is overlay. Flask responses when I access to the bridge IP(from outside client or docker host). but it won’t response when I access […]

What container orchestration tools can deploy containers with routable IP addresses?

I am trying to deploy containers onto a distributed system of several nodes, with the end goal of having each container be bound to its own specific routable IP address. This is due to the fact that I want to use hardware load balancers for my docker containers, which require individual IP addresses. I can […]

Docker Calico networking: Why container from ipip network cannot communication with container from other networks?

I have setup Calico libnetwork plugin with following networks: And for each of the above networks, I run few containers and updated the profile so that ICMP is allowed. All those containers are hosted on two VMs within a single network. I noticed that hosts within ipip network(33.33.33.0/24) can ping with each other while hosts […]

Docker for Mac Host Networking

I’m using Docker for Mac. I have two containers. 1st: A PHP application that is attempting to connect to localhost:3306 to MySQL. 2nd: MySQL When running with links, they are able to reach each other. However, I would like to avoid changing any of the code in the PHP application (e.g. changing localhost to “mysql”) […]

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