Docker error «Powershell was not found in the path»

After installing “docker-machine” on my  Mac machine ( I followed the instructions given here) and tried to create my first machine using the following command

1 2 3 4 5   [root@localhost ~]# docker-machine create –driver hyperv managermachine Running precreate checks... Error with precreate check: “Powershell was not found in the path”  

As you can see in the command output, there was an error “Powershell was not found in the path”

With the help of google, i figured out the “hyperv” driver is supposed to be used only on Microsoft Windows machines which supports Hyper-V . On Mac, you can use “Oracle VirtualBox” driver. You must install “Oracle VirtualBox” on your Mac machine first. Please find the installation instructions here and make sure your OS is supported. You can find the complete list of supported drivers for docker-machine here

Use the following command to create docker machine with Oracle VirtualBox driver.

1 2 3   dockermachine create driver virtualbox MyDocker  

This will create docker machine with name “MyDocker“.

As always, feel free to drop us a note if you have any queries or feedbacks using our comment form below. Always happy to help you ????

 

 

Author: , 0000-00-00