Tag: networking

How to use docker to create linux images per user on the same domain

Here is what I would like to be able to do ( I am not even sure what to look for on the net for docs). docker run –name userXXX -d ubuntu docker run –name userYYY -d ubuntu docker run –name userZZZ -d ubuntu such that I can hand out a root login to a […]

vagrant Multipe networking

I have installed magento 2 in vagrant with in docker machine, this docker machine have port forwarding concepts, I set private network, with nat and host-only, Now only access magento 2 in hostmachine. I need to access locally connected remote machine also so, i try to change private network to public network with bridge. Vagrant […]

Share local network Docker

I have installed Docker 1.12.0-rc4 on my Win10 machine using Hyper-V. I have two containers running a tomcat application and a Metasploit instance both started with the –net=”host” option. From the Metasploit container, I can successfully see the tomcat application running on port :8080 This command downloads the initial page of Tomcat wget 127.0.0.1:8080 However […]

Connecting to containers IP address is impossible in Docker for Windows

This issue happens when you install latest Docker for Windows that uses Hyper-V. However you can see ips in docker network inspect bridge output: “Containers”: { “…”: { “Name”: “dockerdevenvironment_rabbit_1”, “EndpointID”: “…”, “MacAddress”: “02:42:ac:11:00:04”, “IPv4Address”: “172.17.0.4/16”, “IPv6Address”: “” }, “…”: { “Name”: “webserver”, “EndpointID”: “…”, “MacAddress”: “02:42:ac:11:00:02”, “IPv4Address”: “172.17.0.2/16”, “IPv6Address”: “” }, “…”: { “Name”: […]

Docker EC2 & port binding

I have an Ubuntu EC2 instance. Have current version of Docker installed. Running a Jenkins container on the EC2 host. The Docker run command I am using is: docker run \ -d \ -p 9000:8080 \ -p 5000:5000 \ -v /var/run/docker.sock:/var/run/docker.sock \ jenkinsci/jenkins The command completes successfully and my container has started. If I SSH […]

Docker containers starts at different subtnets

I have to start up 3 containers, nginx, wordpress and wordpress2. The problem is the nginx container starts at 172.17.0.2, wordpress at 172.18.0.3 and wordpress2 at 172.19.0.4. The wordpress containers starts with their docker-compose.yml configured as i show: For wordpress: version: ‘2’ services: db: image: mysql:5.7 volumes: – “./.data/db:/var/lib/mysql” restart: always environment: MYSQL_ROOT_PASSWORD: wordpress MYSQL_DATABASE: […]

Assign different IPs to different Docker container

I need to run two containers each containing a script binding on a specific (public) IP (11.11.11.22 and 11.11.11.23) The docker host itself is on 10.10.10.222. I have the subnet 11.11.11.20/27, my gateway is 11.11.11.21 If it matters my server is at SoftLayer. docker-compose.yml version: ‘2’ services: nginx-0: image: nginx:1.10 ports: – 11.11.11.22:80:80 networks: app_net: […]

How do I configure Docker to work with my ens34 network interface (instead of eth0)?

does anyone know how docker decides which NIC will work with the docker0 network? I have a node with two interfaces (eth0 and ens34), however, only the requests that go through eth0 are forwarded to the container. When my VM was provisioned and Docker was installed, I started a very silly test: I created a […]

Docker DNS settings

I try create docker container with custom network and dos settings. docker network create –driver=bridge –opt “com.docker.network.bridge.enable_ip_masquerade”=”true” –opt “com.docker.network.bridge.enable_icc”=”true” –opt=”com.docker.network.driver.mtu”=”1500″ –opt=”com.docker.network.bridge.host_binding_ipv4″=”0.0.0.0″ net — docker run —dns 10.0.0.2 –network=net busybox cat /etc/resolv.conf nameserver 127.0.0.11 options ndots:0 Else if I use standard network all work fine docker run –dns 10.0.0.2 –network=bridge busybox cat /etc/resolv.conf nameserver 10.0.0.2

Enabling debug on Wildfly domain mode in Docker – port already in use

I’m providing full docker environments for a team of developers, comprising Wildfly, MySQL and Apache primarily. I preconfigure all images according to production and a developer has now requested one more option: to be able to use intellij to debug a running wildfly slave. The setup: I set up a virtual machine to host docker […]

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