Giter VIP home page Giter VIP logo

docker-quagga's Introduction

Quagga in Docker

To use, you must run a privileged container.

For instance, to run a bare, unconfigured Quagga and spawn a vtysh shell, one may use:

docker run --privileged --rm -it -n quagga ewindisch/quagga

The user may disconnect from this using Ctrl-P, Ctrl-Q and reattach to vtysh using 'docker attach -it quagga'.

Mind the above is unconfigured. Generally, users will wish to create or load to load their own configurations.

For managing configuraiton, it is recommended for users to do one of the following:

Option #1: Use Docker volumes

Load your configuration into a configuration directory and provide it as a bind-mount into Quagga. The following example checks out our Git repository and uses the configuration there.

git clone https://github.com/ewindisch/docker-quagga
ed docker-quagga/config/zebra.conf
docker run --privileged --rm -d -v $PWD/config:/etc/quagga ewindisch/quagga

Using volumes is recommended if seeking to run a separate container per quagga daemon.

Option #2: Bake-in configuration

One may base an image off of this, loading local configuration.

The following example checks out our github repo and creates a new image containing local configuration changes.

git clone https://github.com/ewindisch/docker-quagga
ed docker-quagga/config/zebra.conf
docker build -t my-quagga <<<"FROM ewindisch/quagga"
docker run --privileged --rm -d my-quagga

The above creates a new dependent image, but it's also possible to fork this repository, make changes and build it directly. The choice is yours.

Option #3: Be a pet

Finally, one may simply run this image without '--rm', tweak the configuration, and then using 'docker stop', 'docker start', etc. This way is more traditional for management, but is not the recommended solution with Docker.

docker-quagga's People

Contributors

ewindisch 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.