Skip to main content

Posts

Showing posts from June, 2017

Mac / Docker / PowerCLI

Mac / Docker / VMWare PowerCLI: Install Docker for Mac:  https://store.docker.com/editions/community/docker-ce-desktop-mac   Install Docker to your Applications folder Launch Docker Test with "$ docker version" or "$ docker ps" from your terminal app Create a local folder for your own powercli scripts Mine is:  "/Users/nathan/scripts/PS/VMW/" Edit or create a ".bashrc" file in your home directory with the following two aliases. alias powercli-start='docker run --name PowerCLI --detach -it --rm --volume '/Users/nathan/scripts/PS/VMW/':/usr/scripts vmware/powerclicore:latest' alias powercli='docker attach PowerCLI' Relaunch your terminal (aliases won't take effect until .bashrc  is referenced) Run the following command to start the PowerCLI docker $ powercli-start Run the following to attach to the PowerCLI docker image $...