First, download and install Docker and perform the following steps:
- Open your favorite browser and download the instance of Docker Community Edition that applies to your OS:
- Once downloaded, start the installer.
- Take the default install options or adjust as required.
Now that you have installed Docker CE, download and use the PowerCLI Core:
- Run the Terminal or Command Prompt to access your Docker instance.
- Pull the PowerCLI Core image from DockerHub by running the following command:
docker pull vmware/powerclicore
Now that the Docker PowerCLI Core environment is loaded, initialize it with the following command:
docker run --rm -it --entrypoint='/usr/bin/powershell' vmware/powerclicore
At this point, PowerCLI is initialized; connect to vCenter and run scripts/commands as usual.