Powershell: Docker PowerCLI Core and Microsoft/Powershell - (docker -it switch)
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFk8XHNc-bXM_1TW30Dk2SBbOo4Nmf-f9LWF1F-AaF9Utd94J3erGpkppf4Y5CvW36fCzhPIi_lXtOZgm2bEsUe6daP7sfJ6DRwSQDnSrFRd3FTZsCyNR0Q23TbLhGcwNCHe0wXdoMExab/s400/cnakagaki_%25E2%2580%2594_VMware_vSphere_PowerCLI_1_0_Release_1_%25E2%2580%2594_docker_run_--rm_-it_-v___Downloads___tmp_scripts_vmware_powerclicore_%25E2%2580%2594_99%25C3%259712_and_Downloads_and_cnakagaki_%25E2%2580%2594_VMware_vSphere_PowerCLI_1_0_Release_1_%25E2%2580%2594_-bash_%25E2%2580%2594_143%25C3%259736_png_and_Blogger__Zsoldier_.png)
Assumptions: Docker running on MacOS. (Likely runs the same on any other OS, minor differences) Summary: While I appreciate William Lam's posts on Docker and PowerCLICore ; I'm kind of dumb and need explanations on the simpler aspects of docker . So for those who would like to know what the options in docker mean (to explore at least) and why it can looks strange even looking at 'help', here is how I understand it. This can also be applied to Microsoft/Powershell container image as well. Details: docker run --rm -it -v /Users/cnakagaki/Downloads/:/tmp/scripts vmware/powerclicore The above line will pull the powerclicore container from docker hub (if not already 'pulled'), run it in interactive mode (w/ pseudo TTY, needed), and mount my local Downloads directory to /tmp/scripts within the docker container. The part that mainly threw me off was the syntax combination of '-it' which essentially translates to -i (interactive) and -t (pseud