Giter Club home page Giter Club logo

docker-opendaylight's Introduction

OpenDaylight controller Docker image

Docker Image CI License

OpenDaylight is a SDN controller. It can be used to control and orchestrate a network of switches.

OpenDaylight supports many southbound protocols and can be integrated in Openstack or even Kubernetes.

What's inside

  • A ready-to-use OpenDaylight instance that will start up as a server. Multiple OpenDaylight versions are provided as tags.
  • The images are based on openjdk:11-jre-slim-buster for OpenDaylight 10+ and openjdk:8-jre-slim-buster for older versions.
  • No features are installed (you can install modules at boot time by setting the KARAF_FEATURES env variable).
  • Exposed TCP ports:
    • 6633 Openflow,
    • 8101 Karaf CLI via SSH (see below),
    • 8181 RESTCONF / HTTP

How to use it

A typical use-case will be starting docker with several environment variables to prepare the container in a way that you have a readily configured OpenDaylight instance with the features you need.

Run the container

docker run -d -p 6633:6633 -p 8101:8101 -p 8181:8181 --name=opendaylight stephanfuhrmannionos/opendaylight

Access OpenDaylight Karaf CLI

Using SSH

To access the Karaf CLI, issue the command

ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p 8101 karaf@localhost

The default SSH credentials are:

  • Username: karaf
  • Password: karaf

Note: StrictHostKeyChecking and UserKnownHostsFile file is turned off because different container invocations will have different host keys.

Using Docker

An interactive Karaf shell can also be spawned with the following command line:

docker exec -ti opendaylight bin/client

where opendaylight is the name of the running container.

Customization via ENV variables

The following environment variables can be set to customize the started server:

Variable Default Possible Values
KARAF_INTERACTIVE 0 0,1 Set to 1 to run Karaf interactive, meaning that the docker instance will be interactive. As an alternative, you can connect in a running server instance using docker exec -ti opendaylight /odl/bin/client
KARAF_FEATURES string Comma separated features to load on boot of OpenDaylight. Example: odl-yangtools-parser,odl-yangtools-parser-api
KARAF_USER karaf string The user name of the Karaf service.
KARAF_PASSWORD karaf string The password of the Karaf service.
ODL_LOGLEVEL INFO TRACE, DEBUG, INFO, WARN, ERROR, FATAL The log level to log runtime information to the Docker console with.
ODL_ADMIN_PASSWORD admin string The password of the AAA admin user.

Example:

docker run  -e KARAF_USER=michael -e KARAF_PASSWORD=knight -p 6633:6633 -p 8101:8101 -p 8181:8181 --name=opendaylight stephanfuhrmannionos/opendaylight:latest

Supported tags

  • latest
  • 15.1.0
  • 15.0.0
  • 14.3.0
  • 14.2.0
  • 14.1.0
  • 14.0.0
  • 0.13.3
  • 0.13.2
  • 0.13.1
  • 0.13.0
  • 0.12.2
  • 0.12.1
  • 0.12.0
  • 0.11.4
  • 0.11.3
  • 0.11.2
  • 0.11.1
  • 0.11.0
  • 0.10.3
  • 0.10.2
  • 0.10.1
  • 0.10.0
  • 0.9.3
  • 0.9.2
  • 0.9.1
  • 0.9.0
  • 0.8.4
  • 0.8.3
  • 0.8.2
  • 0.8.1
  • 0.8.0

Relevant links

The sites relevant for this docker image:

More reading can be found here:

Credits

This is a fork of Guillaume Lefevres repository, but nothing of Guillaumes work is left.

docker-opendaylight's People

Contributors

sfuhrm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docker-opendaylight's Issues

build for 14.0.0 is failing

Build is failing because password setting mechnism changed.

Test 2 fails with:

Error: Unable to access jarfile bin/aaa-cli-jar.jar

Can't access Web GUI

Hello, I'm quite new to ODL and after running the image I can't seem to access the Web GUI. Any help with this would greatly be appreciated.
Screen Shot 2021-09-18 at 7 21 04 PM
.

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.