Powerclicore
PowerCLI Core Dockerfile
Install / Use
/learn @vmware-archive/PowerclicoreREADME
PowerCLI Core
Overview
A container image for VMware PowerCLI and supporting modules, community modules, and community script examples.
This image includes the following components:
Component | Description
---------|----------
VMware.PowerCLI | A collection of PowerShell modules for managing and automating VMware products.
VMware.vSphereDSC | PowerShell module for vSphere desired state configuration.
VMware.CloudServices | PowerShell module for VMware Cloud Services.
VMware.vSphere.SsoAdmin | PowerShell module for vCenter Single Sign-on.
PowerVCF | PowerShell module for VMware Cloud Foundation.
PowerNSX | PowerShell module for VMware NSX for vSphere.
PowerCLI Examples | A collection of community contributed PowerShell modules and scripts.
Get Started
Run the following to download the latest container from Docker Hub:
docker pull vmware/powerclicore:latest
Run the following to download a specific version from Docker Hub:
docker pull vmware/powerclicore:x.y.z
Open an interactive terminal:
docker run --rm -it vmware/powerclicore
Run a local script: docker run --rm --entrypoint="/usr/bin/pwsh" -v ${PWD}
docker run --rm --entrypoint="/usr/bin/pwsh" -v ~/scripts:/tmp/scripts vmware/powerclicore /tmp/scripts/example.ps1
Where ~/scripts is the local directory path for your PowerShell scripts.
For more methods, read 5 ways to a run PowerCLI script using the PowerCLI Docker Container by William Lam.
