NSX Test App Container Based

In my last post, I share the NSX Test App. Nowadays, we talks about containers, dockers and kubernetes. So I was thinking, why not create this NSX Test App as a container as well. This could save people time from downloading the NSX Test App PHP script as well as setting up the apache and PHP environment.

These are the steps I took.


docker run -it -p 81:80 –name web1 nimmis/apache-php5 /bin/bash

cd /var/www/html

wget https://github.com/vincenthanjs/nsxtestapp/blob/master/nsxtest.php

/etc/init.d/apache2 start


docker commit -m “Added NSX Test App Web” -a “Vincent” web1 vincenthan/nsx-test-web:latest

docker login

docker push vincenthan/nsx-test-web

Screen Shot 2017-12-19 at 8.39.40 PM


At dockerhub, I can see the is entry for the container.

Screen Shot 2017-12-19 at 8.38.58 PM


OK. Lets try to see if it works.

docker run -it -p 82:80 –name web2 vincenthan/nsx-test-web /bin/bash

/etc/init.d/apache2 start

Screen Shot 2017-12-19 at 9.40.18 PM


Great! ts working.

Next, I will containerised the database server as well. Stay tune!