DIY Virtualization

How to Run Nginx Workloads with vSphere Integrated Containers

23 Mar 2019 · VMware

Archive article from 2019. Product versions and steps may have changed since — check current vendor documentation before applying.

Now, I’ll demo how easy it is to create a container using VMware’s Integrated Container feature. In this example, we will be creating the container using Docker for Windows.

docker

In machine with docker for windows installed, open PowerShell. We need adding a new environmental variable to that we can point docker to our VCH’s Docker API Endpoint address. Run “docker info” we can see we are now looking at the vSphere Integrated Containers platform.

docker1

Now, let’s create our first conteiner. We’ll run the following syntax:                             docker –tls run -p 8180:80 –name diy_web01 -d nginx docker2

Now we go to test…

docker3

We”ll create a conatiner Linux.                                                                                                docker –tls run –name diy_linux vmware/photon:2.0

docker4.jpg

Thanks in advance!

Working on VMware right now? Our engineers can help.

Talk to an engineer