Tag: networking

Docker. Assign IP from the same range as Host

I am playing with docker. Now I want to assign IP to container from the same IPs range as my host OS has. My Host has IP address 192.168.1.50 (192.168.1.0/24 network). And I want to use for example 192.168.1.51 from the same network for Docker container. For this I`ve installed bridge-utils (I am using Ubuntu […]

Howto assign second ip to docker container with ip:port:port

I have a problem with docker and searched a couple of hours but cannot find a suitable answer for it. Let me explain : I have a vps running CoreOS with 2 ip‘s on it. What i want is to assign one ip to container a and the other ip to container b using the […]

docker networking – Could not discover any bindable network interfaces

I am trying to execute a jar from within a docker container which tries to start a service and detects an IP and port of a remote service and tries to connect to it. But as soon as I do that I get this exception – Exception occured: org.teleal.cling.transport.spi.InitializationException: Could not discover any bindable network […]

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 […]

Azure Hortonworks CloudBreak hosts file not correct

I have created a cluster using the CloudBreak and that all works and I can log into the servers just fine. The problem that I am having is the network setups on the host os and the docker containers seems to not be setup right. The host os and the containers /etc/hosts file like like […]

Not able to access docker daemon api from docker container

I have vagrant box running with docker daemon and on same box I have a docker container running. From docker container, I am trying to curl http://<IP-of-virtualbox>:2375/version and it’s not able to connect. Getting the message connection refused But from host machine I can curl http://<IP-of-virtualbox>:2375/version, not only from container.

Troubleshoot docker connectivity to external network

This was a DNS server issue — the default server 8.8.8.8 (as pre-configured in Docker in Ubuntu) could be pinged but not reached via nslookup. I’m having trouble to connect to the internet from a container on my local installation. My system ifconfig looks fine $ docker run -ti twelly/ifconfigme ifconfig eth0 Link encap:Ethernet HWaddr […]

Linux Networking – Docker Container to Remote Host via Gateway without using route add?

I’m struggling with a networking issue. I have a Docker instance running on 172.17.0.14 with all the containers on the 172.18.0.0/24 network. With Vagrant you would do something like sudo route add -net 172.18.0.0 netmask 255.255.255.0 gw 172.17.0.14 to access the subnet. However, when I run route add inside the container I get SIOCADDRT: Operation […]

dial tcp: lookup xxx.xxx.xxx.xxx: no such host

Trying to push an docker image to private docker repository. but getting error like: “dial tcp: lookup xxx.xxx.xxx.xxx: no such host”. I have logged in correctly to the repository and build succeeded. The following command using to push the image to private repo: sud docker push x.x.x.x:446/dns/graphs

How to connect to Informix DB on host machine from a container through jdbc?

Informix db 12.10 is installed and works fine to connect via a java application using informix jdbc, both are on host machine. When I use a docker container to run my java application and connect to Informix on host machine, it does not connect. The docker0 on host machine shows 172.17.0.1 and ip of container […]

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