Deploy Your Docker Container on VMWare Project Photon

VMware last week announced its involvement with container fever that has gripped the world by announcing open source Project Photon and Project Lightwave.

Project photon is a light weight linux deployment for cloud specific applications while project lightwave provides the security aspect around it. Together both are intended to provide a gateway for VMware towards container architecture.

You can read more from this blog post as well.

Photon can run off of a minimal foot print of 300 MB making it pretty light weight.

I deployed photon on my VMware Fusion on my Mac (obviously) and here’s how it went.

Download the ISO (unless you want to build one off of git)

Deploy a new vm and make sure you select the OS type as Linux kernel 3.x 64-bit

photon-os-type

Once you power on the VM

install-pho

Click Install

Typical Linux install until you are asked to pick the kind of instance you want to deploy. Because I wanted to deploy a container, I picked the second option.

minimal

Select a hostname and a password and off you go!

done

Boom done, now next to pull our first container and get that part going! Press a key to reboot.

Login as root and the password you set. Once you are in do a ifconfig so you know your ip unless you have DNS and everything setup already.

In the container OS mode, docker is already up and ready to rock but lets make sure it boots up every time the system is up. Lets do a “systemctl enable docker” and do a “systemctl start docker” to start the service.

start-docker

Lets pull a docker image, I recently uploaded a basic nginx container so lets try to run that.

lets do a search just to be sure 🙂 Do a “docker search rjapproves/myfirstcontainer” (replace my repo with what ever you like)

docker-rj

Next lets do a docker pull.

Do a “docker pull rjapproves/myfirstcontainer”

Once we do a pull do a “docker run -d -p 80:80 rjapproves/myfirstcontainer” (the switches mention run as a daemon and map the external to internal port)

docker-run

Finally test out your browser and docker’s running!

docker-running

Right now project lightwave is not up for download to try out the security features but when its out we will explore that further.

My docker repo can be found at docker.io/rjapproves/ and you can do a quick search as needed.

Leave a Reply

Your email address will not be published. Required fields are marked *

Post Navigation