Coder Social home page Coder Social logo

loris's Introduction

Loris for Docker Networking 2.0

Docker networking is fast evolving. There are many options today for using Linux bridge, port mapping, Open vSwitch for this purpose. We found the need to have a comprehensive mechanism to network all applications across hosts with isolation through overlay networking. The loris software is an early attempt at providing this framework.

The loris software package allows configuring the networking of individual containers and isolating the network of container groups (i.e., pods). The toolkit uses Open vSwitch to provide connectivity to containers and creates GRE or VxLAN tunnels to allow containers on different hosts to communicate with each other.

docker-networking-2.0.png

Running

After downloading the loris toolkit and adding that to the execution PATH, you can run the following commands to manage the networks. The toolkit creates virtual networks for each pod (i.e., groups of containers that are allowed to reach each other). You will notice that the containers will not be able to communicate across pods.

  • Prepare host for container networking
$ loris init

This command could simply be added to the /etc/rc.local of your host

  • Connect localhost to remote hosts in cluster
$ loris cluster <list of remote_host_ips>

This command needs to be run on every hosts today. But, soon we update code to allow entering this one a single host.

  • Connect container to global pod
$ loris connect <container id/name> <desired_ip/mask> <pod_number>

This creates a new interface eth1 for the container. This is private for cross-contain communication and cannot be used to access external networks.

  • Optionally, you can cleanup host configs after container networking
$ loris cleanup

Support/discussion forum

https://groups.google.com/forum/#!forum/lorispack

loris's People

Contributors

srini084 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.