Docker Image to deploy various VMware and open source related tools to manage a VMware environment
There are many reasons, sometimes you just need to quickly access a specific tool like a particular vSphere SDK or CLI and rather than having to deploy an OS or find one that is available, download the tool and then install it, you can easily spin up this Docker Container that already contains the latest version. This is also a fantastic swiss army knife that contains all of the popular VMware Utilities all in one place if you needed to ever troubleshoot an environment on the go and it includes some of the widely popular community code samples all downloaded for you.
This Dockerfile will create a "Uber" Docker Container and install the following VMware tools:
If you prefer specific SDK/CLI tools, there are also individual Dockerfile located in the directories below which contain their own README with instructions on how to build/use.
Before you can use the Docker Container, you will need to build it. First you need to manually download the following files from VMware's website (which you must register to do so):
Next, you will need to create a new directory to store the 12 files you have just downloaded. In this example, I have just created a simple directory called "vmware-utils" and here is an example of the directory structure:
vmware-utils
├── Dockerfile
├── README.md
├── VMware-ovftool-4.2.0-4586971-lin.x86_64.bundle
├── VMware-vSphere-Automation-SDK-Java-6.5.0-4571808.zip
├── VMware-vSphere-Automation-SDK-Perl-6.5.0-4571819.zip
├── VMware-vSphere-Automation-SDK-Python-6.5.0-4571810.zip
├── VMware-vSphere-Automation-SDK-Ruby-6.5.0-4571906.zip
├── VMware-vSphere-CLI-6.5.0-4566394.x86_64.tar.gz
├── VMware-vSphereSDK-6.5.0-4571253.zip
├── VMware-vix-disklib-6.5.0-4604867.x86_64.tar.gz
├── vsan-sdk-65-java-4602587.zip
├── vsan-sdk-65-perl-4602587.zip
├── vsan-sdk-65-python-4602587.zip
└── vsan-sdk-65-ruby-4602587.zip
Now you are ready to build your container! For individual Docker Containers, please refer to their respective README for build details.
Change into the vmware-utils directory
Run the following command to build the Container and provide a tag for this particular build, an example would be lamw/vmware-utils
$ docker build -t lamw/vmware-utils .
Once the Container has been successfully built, you can run it using the following command:
$ docker run --rm -it lamw/vmware-utils
At this point you are now logged into the Container that you have just built and you can see a few of the tools that have been installed
[email protected]:~# ls
VDDK-6.5 VMware-vSphere-Automation-SDK-Perl-6.5.0 VMware-vSphere-Automation-SDK-Ruby-6.5.0 vSphere-Management-SDK-6.5 vsan-sdk-perl vsan-sdk-ruby
VMware-vSphere-Automation-SDK-Java VMware-vSphere-Automation-SDK-Python-6.5.0 script-repos vsan-sdk-java vsan-sdk-python