3

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).

sorin
  • 161,544
  • 178
  • 535
  • 806
  • Possible duplicate of [\`docker run\` on a remote host](https://stackoverflow.com/questions/44446472/docker-run-on-a-remote-host) – mchawre Jun 22 '19 at 16:46

2 Answers2

5

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.

atline
  • 28,355
  • 16
  • 77
  • 113
2

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.

P.J.Meisch
  • 18,013
  • 6
  • 50
  • 66
  • I was hoping to find a better grazing solution. I will wait bit more before accepting it that workaround. Thanks! – sorin Jun 22 '19 at 19:47