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`uname -s`-`uname -m` >/tmp/docker-machine &&
chmod +x /tmp/docker-machine &&
sudo cp /tmp/docker-machine /usr/local/bin/docker-machine

Read: How to clean up unused Docker containers, images and volumes

Docker machine install for OS X:

curl -L`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 holds a degree in software development and has a strong passion for all things tech-related, especially gadgets with screens. Though he is nostalgic for older phone models, he's a retired gamer and continues to enjoy programming in open-source environments. Additionally, Nikolaus enjoys writing about Linux, macOS and Windows and has experience designing web pages.

Leave a Reply