For the first time to use docker
Reference:https://peihsinsu.gitbooks.io/docker-note-book/content/docker-build.html
$ docker build [Dockerfile] .
openssh-server is included in dockerfile
-
port forwarding
docker run -p [ip]:[hostPort]:[containerPort] [image name]
---->将container port mapping到host的port上docker run -P [image name]
---->放在ramdom portE.X. docker run -p 127.0.0.1:50001:22 redis
$ docker kill [container id]
$ docker tag [image id] [new repository name]
we need
mininet
openvswitch(OVS)
ryu
let's get to work!
At this part ,things get pretty easy ,just apt-get install mininet
This one can takes times :
- setup pre-ENV
apt-get install git
apt-get install autoconf automake libtool
apt-get install openssl
apt-get install libssl-dev
apt-get install make
apt-get install make-guile
apt-get install python-six (Python 3 or 2.7 are required )
-
clone ovs source code
git clone https://github.com/openvswitch/ovs.git
-
build the source code
cd ovs
./boot.sh
./configure
make
make check //run ovs self-check, This can takes thousand of time.
make install
-
check if sucessed & set ENV
/sbin/lsmod | grep openvswitch
export PATH=$PATH:/usr/local/share/openvswitch/scripts
-
Start up & test
ovs-ctl start
-
setup pre-request
sudo apt-get install python-pip python-dev build-essential
-
setup dependency
sudo apt-get install python-eventlet python-routes python-webob python-paramiko
-
install ryu
pip install ryu
locale.Error: unsupported locale setting
locale
-->export LC_ALL=C