How to do it…

First, download and install Docker and perform the following steps:

  1. Open your favorite browser and download the instance of Docker Community Edition that applies to your OS:
  2. Once downloaded, start the installer.
  3. Take the default install options or adjust as required.

Now that you have installed Docker CE, download and use the PowerCLI Core:

  1. Run the Terminal or Command Prompt to access your Docker instance.
  2. 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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset