Git Product home page Git Product logo

libnetwork-plugin's Introduction

PLUMgrid libnetwork-plugin

The PLUMgrid Libnetwork Plugin enables seamless way to connect Docker containers to PLUMgrid. It enables rich networking functions, secure multi-tenancy, multi-host networking, high availability, distributed scale-out performance, and container-based micro-segmentation for Docker clouds.

Pre-Requisites

  • PLUMgrid Standalone
  • golang1.4 >=
  • Install Docker v1.9+

Using PLUMgrid Libnetwork Plugin

Before launching PLUMgrid libnetwork plugin, ensure that Docker is installed on your host(s)

Build the binary using the instructions below and launch it on your host. PLUMgrid plugin must be launched once per host.

Create a network using PLUMgrid driver

$ docker network create --subnet=10.0.0.0/24 -d plumgrid net1

Create a network on specific domain

$ docker network create --subnet=10.0.0.0/24 -d plumgrid -o domain=DomainID net1

You can choose to link the network to a specific router in PLUMgrid virtual domain as well, this is entirely optional and depending on your use case, you may use it.

$ docker network create --subnet=10.0.0.0/24 -d plumgrid -o router=router-1 net1

You can also choose to link the network to a specific bridge in PLUMgrid virtual domain, this also is optional and can be used depending upon your use case.

$ docker network create --subnet=10.0.0.0/24 -d plumgrid -o bridge=bridge-1 net1

Run your containers using the Docker CLI

$ docker run -itd --name=cont1 --net=net1 busybox

Run several containers, and verify they can ping each other

Developing PLUMgrid Libnetwork Plugin

Install Docker (if not already)

curl -sSL https://get.docker.com/ | sh

Start the docker daemon

$ docker daemon

Create a go workspace

$ mkdir $HOME/work

Export GOPATH environment variable

$ export GOPATH=$HOME/work

Add workspace’s bin subdirectory to your path

$ export PATH=$PATH:$GOPATH/bin

Clone the PLUMgrid libnetwork plugin repo

$ git clone https://github.com/plumgrid/libnetwork-plugin.git $GOPATH/src/github.com/libnetwork-plugin/

Move to plugin directory and make binaries

$ cd $GOPATH/src/github.com/libnetwork-plugin/
$ make

Move config.ini under /opt/pg/libnetwork/

Update this /opt/pg/libnetwork/config.ini to contain the PLUMgrid Virtual IP

Now run the PLUMgrid libnetwork plugin

$ sudo mkdir -p /run/docker/plugins
$ ./plugin/plumgrid

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.