This tutorial assumes that you have docker installed on your system.
You can install it on Ubuntu systems by following the instructions outlined here: https://docs.docker.com/installation/ubuntulinux/#installation
Download the ONOS Docker image
The ONOS docker image is built and published on docker hub (as an automated build). You can simply obtain it by running:
docker pull onosproject/onos
Please note that this is the latest and greatest ONOS. The build occurs every time code is pushed to GitHub. There are also tagged versions available for previous versions of ONOS.
If instead you prefer a released version
docker pull onosproject/onos:2.1.0
Environment Setup
Please do setup you environment with the ONOS developers tools
git clone https://gerrit.onosproject.org/onos
then follow
$ cd onos $ cat << EOF >> ~/.bash_profile export ONOS_ROOT="`pwd`" source $ONOS_ROOT/tools/dev/bash_profile EOF $ . ~/.bash_profile $ cd onos
Running the ONOS Docker image
To run ONOS as a single instance:
docker run -t -d -p 8181:8181 -p 8101:8101 -p 5005:5005 -p 830:830 --name onos onosproject/onos
To run a released version
docker run -t -d -p 8181:8181 -p 8101:8101 -p 5005:5005 -p 830:830 --name onos onosproject/onos:2.1.0