Introducing PowerCLI Docker Image

Thanks to the official releases of PowerShell 6 Core and PowerCLI 10.0, you can easily run PowerCLI in a Docker Container. Some days ago, the PowerCLICore Docker image has been updated with all the latest packages. In this post, I will describe how to run PowerCLI in a Docker Container on Windows 10.

Let’s start by pulling the image from Docker Hub:

docker pull vmware/powerclicore

I can confirm that the PowerCLI image exists:

Ok, now I can create a Container based on this image:

docker run -it vmware/powerclicore

The container is up and running. I can check the OS version:

cat /etc/*-release

The container is based on VMware Photon OS:

I can confirm the PowerCLI module version:

Now you can connect to your Vcenter.

 

Thanks for reading! You can follow me on Twitter @PrigentNico

About Nicolas 282 Articles
I work as an IT Production Manager, based in Paris (France) with a primary focus on Microsoft technologies. I have 10 years experience in administering Windows Servers. . I am a Microsoft MVP for Cloud & Datacenter Management. I also received the PowerShell Hero 2016 award by PowerShell.0rg. And finally, I am "MCSE: Cloud Platform and Infrastructure", "MCSA: Windows Servers", "Administering & Deploying SCCM", and CheckPoint CCSA certified.