...
Build and run single node SDN-R
Build and run container
Login to nexus repository (for first time) .. see here: Docker DevOps
- Build
...
Code Block |
---|
(1) docker run --detach --name sdnr -p8181:8181 --env SDNRWT="true" oof-pci/ccsdk-odlwt-alpine-image:latest (2) docker run --detach --name sdnr -p8181:8181 --env SDNRWT="true" oof-pci/ccsdk-odlwt-alpine-image:latest |
- For With (1) do attach to open UX Web GUI by using browser http://172.17.0.2:8181/index2.html with (!) on host machine with user/password = admin/admin
- Wait about 30 seconds that container is up and running
- Verify with curl -v http://172.18.0.2:8181/index2.html that it is running. Correct ouput ends with lines: HTTP/1.1 301 Moved Permanently , < Location: odlux/index.html, < Content-Length: 0
- docker ps should show a single running container and shows its CONTAINERID
- docker inspect CONTAINERID sdnr gives IP adress to be used. In the example 172.17.0.2
- With start (2) you can open UX Web GUI by using browser http://HOST_IP:8181/index2.html from different machine with user/password = admin/admin
- Login to docker container command line with name "sdnr"
Code Block |
---|
docker exec -t -i "sdnr" /bin/bash -c 'TERM=xterm exec /bin/bash' |
- Opendaylight home is under "/opt/opendaylight". Coul could cd $ODL_HOME
- Leave CLI with exit.
Stop and remove container
Code Block |
---|
docker stop sdnr docker rm sdnr |
...