Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install only Docker client on MacOS?

Tags:

docker

macos

Docker can work decently remotely by defining DOCKER_HOST variable but now I do want to avoid installing the fat Docker for MacOS which also installs and starts the docker engine on a VM, one that seems to consume resources.

As docker work remotely it should continue to be able to build images, list images, start and stop them without having a docker servic/vm mac.

How can I do this? (docker cli seems to be come only with the entire cow).

like image 965
sorin Avatar asked Sep 02 '25 01:09

sorin


2 Answers

I guess you are looking for install-client-binaries-on-macos.

Docker company afford some prebuilt binary, just download here, unpackage it, then you will find a standalone docker client binary there, copy it to your mac, out of the box for use.

like image 168
atline Avatar answered Sep 05 '25 17:09

atline


There seems to be no install of the client only; but after installing the fat cow, you can tell it to stay off your grass by unchecking Start Docker Desktop when you log in in the preferences, and then shut down the Docker server.

That's what I do, and when I need docker locally I just start and then after using it, I shut it down again.

like image 25
P.J.Meisch Avatar answered Sep 05 '25 18:09

P.J.Meisch