Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

docker-machine: command not found

Tags:

I recently upgraded Docker Desktop for Mac to version 2.2.0.0, and now when try to run a docker-machine command I am getting an error:

$ docker-machine --version 

docker-machine: command not found

Docker Machine used to be installed with Docker, but it appears in the latest docs that this is no longer the case. What is the replacement or do I need to install Docker Machine from somewhere else?

like image 365
wogsland Avatar asked Feb 05 '20 14:02

wogsland


People also ask

How do I test my Docker machine?

You can see the machine you have created by running the docker-machine ls command again: $ docker-machine ls NAME ACTIVE DRIVER STATE URL dev * virtualbox Running tcp://192.168.99.100:2376 The * next to dev indicates that it is the active host.

What is Docker machine IP?

Usually Docker uses the default 172.17. 0.0/16 subnet for container networking.


2 Answers

Docker machine has been removed from later versions of Docker Desktop. Your going to need the docker-toolbox package.

Read here for install and co existence of the packages.

https://docs.docker.com/docker-for-mac/docker-toolbox/#docker-toolbox-and-docker-desktop-coexistence

like image 142
Josh Beauregard Avatar answered Sep 20 '22 16:09

Josh Beauregard


For Windows, if you have chocolatey installed, you follow the steps:

  1. open a command shell with "Run as Administrator" selected (I tested this on my work laptop).
  2. run "choco install docker-machine"
like image 39
razvanone Avatar answered Sep 18 '22 16:09

razvanone