Notes: Installing Docker on vSphere 6

Add Docker functionality to ESXi

Download the Docker Volume Plugin -> https://github.com/vmware/docker-volume-vsphere/releases/download/0.1.0.tp/vmware-esx-vmdkops-0.1.0.tp.vib

Enable esxi shell and ssh on ESXi host

Use WinSCP to copy the VIB to the ESXi host (WinSCP at https://winscp.net/download/WinSCP-5.9.2-Setup.exe )

Install the VIB into the esxi kernel using the following command:

esxcli software vib install -v /path-to-vib/vmware-esx-vmdkops-0.1.0.tp.vib -f

From <http://www.virtuallyghetto.com/2016/05/getting-started-with-tech-preview-of-docker-volume-driver-for-vsphere.html>

clip_image001

(The ESXi host does NOT need to be rebooted!)

Check all is well with

/etc/init.d/vmdk-opsd status

From <http://cormachogan.com/2016/06/01/docker-volume-driver-vsphere/>

clip_image002

Get Photon as the base host OS for the Docker containers

Download the PhotonOS OVA which is the Docker Container OS (could use Ubuntu instead)

https://github.com/vmware/photon/wiki/Downloading-Photon-OS

Deploy the OVA into your ESXi host (or in this case vCenter server)

clip_image003

(More vCPU/Memory required?)

Boot Photon OS

Immediately you login as root with the default password (“changeme”) you will be forced to change the password to something else

clip_image004

Download the vmdk plug-in for Docker

RPM -> https://github.com/vmware/docker-volume-vsphere/releases/download/0.1.0.tp/docker-volume-vsphere-0.1.0.tp-1.x86_64.rpm

Or

DEB -> https://github.com/vmware/docker-volume-vsphere/releases/download/0.1.0.tp/docker-volume-vsphere_0.1.0.tp_amd64.deb

Use WinSCP to copy either file to /root (use ifconfig to find out what the IP address of the Photon VM is)

clip_image005

Depending on which install package you downloaded, use one of the following commands to install the plug-in into PhotonOS

rpm -ivh docker-volume-vsphere-0.1.0.tp-1.x86_64.rpm

dpkg -i docker-volume-vsphere-0.1.0.tp-1.x86_64.db

From <http://www.virtuallyghetto.com/2016/05/getting-started-with-tech-preview-of-docker-volume-driver-for-vsphere.html>

clip_image006

Test Docker is functioning

Create a 10GB docker volume called ‘vol1’ as an example:

docker volume create –driver=vmdk –name=vol1 -o size=10gb

From <http://www.virtuallyghetto.com/2016/05/getting-started-with-tech-preview-of-docker-volume-driver-for-vsphere.html>

clip_image007

Use a Docker Volume command to see the details

clip_image008

More to follow as I learn Docker…