Tag: networking

Docker public network configuration

I have 1 host with ip And I have a range set from my router to my host ip, the range is and his gateway is I’m trying to create a docker network with this range docker network create –driver=bridge –subnet= –ip- range= –gateway= -o “com.docker.network.bridge.enable_icc=true” -o “com.docker.network.bridge.host_binding_ipv4″=”” mypublicnet if I try […]

docker-compose service and the network

Trying to get familiar with docker-compose version 2 and essentially just setup a 2 simple node cluster which can discover each other given . |– docker-compose.yml |– node1 | `– Dockerfile |– node2 | `– Dockerfile and a Dockerfile as FROM centos:centos6.6 and docker-compose.yml as version: ‘2’ services: dn1: build: ./node1/. hostname: dn1.foo.com command: tail […]

What's eth0 used for in docker host machine

I’m using Docker on Windows. When I ssh to a docker host machine(local VM) and type ifconfig, normally we get something like this: docker@master:~$ ifconfig docker0 Link encap:Ethernet HWaddr 02:42:82:A3:2D:FB inet addr: Bcast: Mask: UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 […]

Cannot set up Kubernetes local cluster via Docker

I followed http://kubernetes.io/docs/getting-started-guides/docker/. Here are the commands I literally run: export K8S_VERSION=$(curl -sS https://storage.googleapis.com/kubernetes-release/release/stable.txt) export ARCH=amd64 docker run -d \ –volume=/:/rootfs:ro \ –volume=/sys:/sys:rw \ –volume=/var/lib/docker/:/var/lib/docker:rw \ –volume=/var/lib/kubelet/:/var/lib/kubelet:rw \ –volume=/var/run:/var/run:rw \ –net=host \ –pid=host \ –privileged \ gcr.io/google_containers/hyperkube-${ARCH}:${K8S_VERSION} \ /hyperkube kubelet \ –containerized \ –hostname-override= \ –api-servers=http://localhost:8080 \ –config=/etc/kubernetes/manifests \ –cluster-dns= \ –cluster-domain=cluster.local \ –allow-privileged –v=2 […]

Keepalived health check can't connect to

I’ve currently got a cluster of servers running Centos 7 and Docker, and I want to use Keepalived to allocate a floating IP between them. I’ve configured Keepalived to run a check command on each node which just does curl –silent –fail localhost:80 to ensure a HTTP server is listening. The web app is running […]

why failed to forward public ip to docker NAT ip

For example, on the physical machine: # ip addr 5: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 .. inet scope global eth2 valid_lft forever preferred_lft forever inet scope global secondary eth2 valid_lft forever preferred_lft forever 8: docker0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 link/ether 02:42:65:1b:b0:25 brd ff:ff:ff:ff:ff:ff inet scope global docker0 “” is the main IP of this […]

Unable to access web application in Docker container via container's ip and exposed port over http

I have a docker container running on a Centos host and has a host port: container port mapping. The docker container has an web application running. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES a2f8ce62bb69 image1 “/bin/bash” 16 hours ago Up 16 hours 22/tcp,>7001/tcp nostalgic_elion I can access the application over http by host […]

Connecting Docker Containers

Hello Helpful Developers, I’m having issues connecting docker containers. I have built a subversion docker container and a mongo docker container. docker run -d -p 3343:3343 -p 4434:4434 -p 18080:18080 –name svn-server mamohr/subversion-edge docker run -p 27017:27017 –name my-mongo -d mongo I’m able to hit http://x.x.x.x:18080/ from a browser, but unable to curl from the […]

Docker For Windows kills my network on Windows 10 Bootcamp

Running Windows 10 Pro in bootcamp on my Mac. When I install Docker for Windows, the system reboots after enabling HyperV and when it comes back, my network adapters are dead. Any solutions for this? I’m not a Windows guy, and not very familiar with how the network drivers work. They all appear to be […]

Get MAC address of other host on network from Docker container

I’d like to run a program in a container that get’s the MAC address from my other host on my local network. I’d like a program running in a container which is bound to a physical interface be treated as a local program, not one running on a remote host. I have a host that […]

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