I have docker desktop installed in mac. So in order to start docker, I open applications and find docker. Then I can see a docker icon at the topbar. later I can run docker commands from the command line.
My question is how do I start the docker itself from command line?
Googling fetches me results on how to start a container from command line :|
On
macOS
you'd uselaunchctl
:It's unclear which service you are actually intending to run, although the equivalent to
service
orsystemctl
onLinux
islaunchctl
onmacOS
(eg. running docker registry withlaunchd
):Copy the Docker registry plist into place:
Start the Docker registry:
Restart the docker registry service
Unload the docker registry service
↳ Run the Docker Registry under launchd