Launch the Docker Daemon from osMac CLI

I’m away and want to start the Docker daemon.1


Previously on X-Men

mini3:~ peter$ docker run -d -p 80:80 --name webserver nginx
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.

Okay … so the official instructions are all for the GUI. I want this to work without a GUI.

There’s this thread which leads me to a -610 error (what’s that?‘)

https://forums.docker.com/t/restart-docker-from-command-line/9420/7

mini3:~ peter$ killall Docker && open /Applications/Docker.app
No matching processes belonging to you were found
mini3:~ peter$ open /Applications/Docker.app
LSOpenURLsWithRole() failed with error -610 for the file /Applications/Docker.app.

The official docs don’t tell you what the error codes are. https://developer.apple.com/documentation/coreservices/launch_services#1661359

Microsoft has some explanations; http://www.office.mvps.org/error/number.html

… but they don’t cover 610, likely because they don’t have to deal with it

Oh Hai - Today

open seemed to work from the command line today. whatever.

$ open /Applications/Docker.app

  1. I suspect that OsX restarted last night without warning and wants me to click “Okay” [return]
comments powered by Disqus
Peter LaValle avatar
Peter LaValle
Any links probably include affiliate ids for that sweet sweet kickback - and some programs require that I tell you. The contents of this blog are likely unrelated - as they include games, paints, and build tools.