Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

docker machine vs docker for mac

I have installed docker for mac on my machine. I have pulled a repo from the docker hub, the docker run command includes the docker-machine ip parameter for which I get an error, Error: No machine name(s) specified and no "default" machine exist. Could someone elaborate the difference between docker machine and docker for mac.

like image 783
gowthamjs23 Avatar asked Jul 25 '17 23:07

gowthamjs23


People also ask

What is Docker machine Mac?

Docker Desktop is an easy-to-install application for your Mac, Linux, or Windows environment that enables you to build and share containerized applications and microservices.

What is the difference between Docker and Docker machine?

Docker Engine accepts docker commands from the CLI, such as docker run <image>, docker ps to list running containers,docker image ls to list images, and so on. Docker Machine is a tool for provisioning and managing your Dockerized hosts (hosts with Docker Engine on them).

Does Docker for Mac use a VM?

Docker itself “uses the Linux kernel and features of the kernel, like Cgroups and namespaces, to segregate processes so they can run independently”. On MacOS, Docker is run using a Linux Virtual Machine and relies on sub-components: HyperKit, VPNKit, and DataKit to support its functionalities.


1 Answers

If you have Docker for Mac running on your machine, you don't need Docker Machine. Using Docker Machine (usually through Docker Toolbox) to run locally only if you have an older Mac version that isn't supported, which isn't the case here, or a Windows machine without Windows 10 pro.

The only other case you need Docker Machine is for controlling remote machines or setting up multiple nodes locally.

like image 73
Mano Marks Avatar answered Sep 28 '22 08:09

Mano Marks