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
docker commit -m “Added NSX Test App Web” -a “Vincent” web1 vincenthan/nsx-test-web:latest
docker push vincenthan/nsx-test-web
At dockerhub, I can see the is entry for the container.
OK. Lets try to see if it works.
docker run -it -p 82:80 –name web2 vincenthan/nsx-test-web /bin/bash
Great! ts working.
Next, I will containerised the database server as well. Stay tune!