docker-network-p2p

command module
v0.0.0-...-296f058 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

README

point-to-point network driver plugin for docker

For efficient container-to-container networking a simple non-bridged veth pair is sufficient. This docker network driver implements a point-to-point network using a veth pair.

Install

docker plugin install choppsv1/docker-network-p2p 

Usage

To use with docker

docker network create --driver="choppsv1/docker-network-p2p" testnet
docker run --rm --network=testnet alpine ip addr

To use in docker compose:

version: "2.4"

services:
  h1:
    image: alpine
    command: sh -c 'ip addr; tail -f /dev/null'
    networks: [ "p2pnet" ]
  h2:
    image: alpine
    command: sh -c 'ip addr; tail -f /dev/null'
    networks: [ "p2pnet" ]

networks:
  p2pnet:
    driver: "choppsv1/docker-network-p2p:latest"

License

The software contained herein is licensed under Apache License (Version 2.0)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL