Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker - Replacement for `dockerd` on Mac

I wanted to start the docker daemon with an open TCP address like this: docker daemon -H tcp://0.0.0.0:2375, but the terminal suggested that I use dockerd instead, which is apparently not a program that comes with the Docker Client for mac. Is there a way I can either

  • A - get some form of dockerd on my mac machine.
  • B - get around the use of dockerd by some other method.

?

like image 428
SalmonKiller Avatar asked Jun 25 '16 21:06

SalmonKiller


People also ask

What is replacing Docker desktop on Mac?

Replace Docker Desktop on Mac with a concrete setup alternative (Kubernetes included) Docker announced on August 31 2021 that they will update their subscription. There are some changes on the Docker Desktop side:

Do I need a subscription to use Docker Desktop for Mac?

Commercial use of Docker Desktop in larger enterprises (more than 250 employees OR more than $10 million USD in annual revenue) requires a paid subscription. Welcome to Docker Desktop for Mac. This page contains information about Docker Desktop for Mac system requirements, download URLs, instructions to install and update Docker Desktop for Mac.

Is there a way to run Docker without dockerd /Docker desktop?

Note that in 2022, you can go without dockerd /Docker Desktop entirely. See Batuhan Apaydin 's article "A modern toolkit to start working with container images on macOS that meets your needs without requiring a Docker Daemon or even Docker Desktop". The nerdctl tool is designed as a drop-in replacement for the Docker client

What are the best alternatives to Docker desktop?

Lima on the other hand is a great replacement for Docker Desktop - it has quite close feature parity and moves to using 100% open source components. Finally, Minikube has always been a great alternative to running a single node CNCF compliant Kubernetes cluster rather than the Kubernetes clustering built into Docker Desktop and it remains so.


1 Answers

Install socat command: brew install socat Choose a port: (in the example 8099)
Run: socat -d -d TCP-L:8099,fork UNIX:/var/run/docker.sock
and then use tcp://localhost:8099 as API URL

works for me, hope this helps

like image 122
Lukewcn Avatar answered Sep 21 '22 09:09

Lukewcn