How to fix docker-machine: command not found error

Using docker machine, you have tried to create a virtual machine using the command :

docker-machine create –driver virtualbox your_vm [docker machine create vm command]

But this returned an error : docker machine command not found

To solve the issue, you would need to install docker machine beforehand using docker toolbox (with also the installation of Docker Engine, Kitematic and Compose).

For the different releases of the operating systems, you can perform the download from the following page.

Otherwise here are the commands needed to install docker machine :

Docker machine install for Linux :

curl -L https://github.com/docker/machine/releases/download/v0.16.2/docker-machine-`uname -s`-`uname -m` >/tmp/docker-machine &&
chmod +x /tmp/docker-machine &&
sudo cp /tmp/docker-machine /usr/local/bin/docker-machine

Docker machine install for OS X:

curl -L https://github.com/docker/machine/releases/download/v0.16.2/docker-machine-`uname -s`-`uname -m` >/usr/local/bin/docker-machine && \

chmod +x /usr/local/bin/docker-machine


If you like the content, we would appreciate your support by buying us a coffee. Thank you so much for your visit and support.

 

Nikolaus Oosterhof

Nikolaus has a degree in software development. He is passionate about gadgets with a screen, nostalgic for phones, a retired gamer and open source programmer. He likes also to write about macOS and Windows. design web pages and debug long programs!

Leave a Reply

Close Menu